Search found 273 matches

by jadiflow
Sat Feb 04, 2023 3:14 pm
Forum: General Programming
Topic: ESP32 support
Replies: 2
Views: 5041

Re: ESP32 support

Thanks, but as far as I am aware I did post in the FC9 forum, but I will check. I started using FC with version 5, so I am always shown as FC5 user ... Maybe the system automagically slotted me into the FC5 forum, I don't know. Edit - I see, the FC9 forum is a whole different board section. Thanks f...
by jadiflow
Sat Feb 04, 2023 1:29 pm
Forum: General Programming
Topic: ESP32 support
Replies: 2
Views: 5041

ESP32 support

Hi, getting up to speed with the ESP32 family. I want to develop hardware with WiFi, USB and Ethernet support. Espressive has what they call the ESP32 Ethernet board https://docs.espressif.com/projects/esp-idf/en/latest/esp32/hw-reference/esp32/get-started-ethernet-kit.html#get-started-esp32-etherne...
by jadiflow
Mon Dec 20, 2021 12:30 pm
Forum: General Programming
Topic: Use of T1 timer component
Replies: 4
Views: 4893

Re: Use of T1 timer component

Thanks! All sorted now.

Jan Didden
Linear Audio
by jadiflow
Mon Dec 20, 2021 11:28 am
Forum: General Programming
Topic: Use of T1 timer component
Replies: 4
Views: 4893

Re: Use of T1 timer component

Thank you Ben, that's very useful, picture is clear now. With the increased delay (500ms) the count is off by max 1 count (in simulation) which probably is a rounding in the conversion. One more question: in simulation, what clock speed is used, the actual device clock speed or the clock speed enter...
by jadiflow
Mon Dec 20, 2021 10:50 am
Forum: General Programming
Topic: Use of T1 timer component
Replies: 4
Views: 4893

Use of T1 timer component

Hi, I'd like to use the T1 counter of the PIC16F15355 for an up to 10 minutes delay. There is a Timer1 component in Flowcode 9 I want to use, but it is basically undocumented. Some experiments lead to the following issues: What is the relationship between Instruction Rate, Rollover Frequency and Rol...
by jadiflow
Sun Dec 19, 2021 8:10 pm
Forum: Flowcode V7
Topic: Do I need Storage pack to use internal timer (FC9; PIC16F)
Replies: 3
Views: 3059

Re: Do I need Storage pack to use internal timer (FC9; PIC16F)

Thanks for your reply - hope you're airborne by now! I have the oscillator sorted by writing to the OSCONx registers directly. The Device Configuration settings in the Project Options don't seem to work. BTW I am running Flowcode 9, just updated a few days ago from FC7, so a bit unfamiliar, it may b...
by jadiflow
Sun Dec 19, 2021 4:56 pm
Forum: Flowcode V7
Topic: Do I need Storage pack to use internal timer (FC9; PIC16F)
Replies: 3
Views: 3059

Do I need Storage pack to use internal timer (FC9; PIC16F)

Hi, I want to use the PIC internal timer and I thought there would be some Flowcode component macros or functions for that, but I don't see any. Do I have to use C-blocks to set the appropriate registers, or do I need the Storage lib? There is some indication that the Storage lib has high level Time...
by jadiflow
Sun Dec 12, 2021 7:18 pm
Forum: Bug reports
Topic: Compile error msg from PIC16F15354 ADC
Replies: 11
Views: 12126

Re: Compile error msg from PIC16F15354 ADC

Yes that fixed it, no more memory or ADC errors!

Muchas Gracias.

Jan
by jadiflow
Sun Dec 12, 2021 11:03 am
Forum: Bug reports
Topic: Compile error msg from PIC16F15354 ADC
Replies: 11
Views: 12126

Re: Compile error msg from PIC16F15354 ADC

Sorry to bother you again, but there seems to be more issues with that 16F153xx family. I have a project that compiles error free with the 16F1788 (similar to the 15354 family) but when porting to the 15354 gives an error from the FP library: using updated 32-bit floating-point libraries; improved a...
by jadiflow
Thu Dec 09, 2021 4:00 pm
Forum: Bug reports
Topic: Compile error msg from PIC16F15354 ADC
Replies: 11
Views: 12126

Re: Compile error msg from PIC16F15354 ADC

Yes, I should take a look at upgrading. It's just to find the time to invest to get to grips with the changes ...

Jan
by jadiflow
Thu Dec 09, 2021 9:59 am
Forum: Bug reports
Topic: Compile error msg from PIC16F15354 ADC
Replies: 11
Views: 12126

Re: Compile error msg from PIC16F15354 ADC

Martin, I just checked this out with the PIC16F15354 and it works flawlessly now. We might need to migrate to the PIC16F15356 at a later stage if we need more program space, not sure yet. The fixes you made were specific to the 16F15354; would it not be possible to do a fix for the whole 16F153xx fa...
by jadiflow
Thu Dec 09, 2021 9:32 am
Forum: Bug reports
Topic: Compile error msg from PIC16F15354 ADC
Replies: 11
Views: 12126

Re: Compile error msg from PIC16F15354 ADC

Martin, thank you very much for taking the time to review and fix this! I had identified another similar PIC that did not have the issue (16F1788) but that one didn't have the AN inputs I used and I was facing the prospect to scrap a batch of boards that are underway from Far East. So you saved me m...
by jadiflow
Wed Dec 08, 2021 12:34 pm
Forum: Bug reports
Topic: Compile error msg from PIC16F15354 ADC
Replies: 11
Views: 12126

Re: Compile error msg from PIC16F15354 ADC

Something I just thought of: do I have to explicitly set all the ADC related registers? I assumed that the act off attaching the ADC base template top the project and setting the items in the Panel would be sufficient? But since the error is 'unidentified identifier' it looks like the problem is in ...
by jadiflow
Wed Dec 08, 2021 12:30 pm
Forum: Flowcode V7
Topic: Variable watch/modify window in FC7
Replies: 5
Views: 3481

Re: Variable watch/modify window in FC7

Got it Martin, much obliged.

Jan Didden
by jadiflow
Tue Dec 07, 2021 10:06 am
Forum: Bug reports
Topic: Compile error msg from PIC16F15354 ADC
Replies: 11
Views: 12126

Compile error msg from PIC16F15354 ADC

Hello, I am trying to build an app on the PIC16F15354 using the build-in ADC. I'm not doing any customization, just using the standard build in component. But I get compile errors as shown in the attachment. Is there something I missed? FC7. Edit: added ADC properties screen shot Thanks, Jan Didden ...
by jadiflow
Sun Dec 05, 2021 1:22 pm
Forum: Flowcode V7
Topic: Variable watch/modify window in FC7
Replies: 5
Views: 3481

Variable watch/modify window in FC7

Hi, getting back to FC7 after some hiatus. For some reason, I forgot how to bring up the window to watch/modify variables during a debug run. Tried many things, the debug|Show|Watch window is checked but nothing shown on the screen. I am sure I'm missing something trivial but am stuck. Can anybody g...
by jadiflow
Wed Oct 21, 2020 12:26 pm
Forum: 8-Bit PIC
Topic: ADC ground ref setting
Replies: 11
Views: 6467

Re: ADC ground ref setting

Martin, thanks for chiming in. As I understand it, if you select external reference (ref+) in the ADC setup it also automagically sets ref- to an external pin, not to Vss. In my case I route both ref+ and ref- from the source to the controller board to be sure I do not pick up any DC offset on the w...
by jadiflow
Wed Oct 21, 2020 9:57 am
Forum: 8-Bit PIC
Topic: ADC ground ref setting
Replies: 11
Views: 6467

Re: ADC ground ref setting

Stefan, the PIC16F1788 has no analog power pins.

BTW: When I connect the ref- pin 4 to Vss it works very well with just an LSB or two error. I tried to recreate that by setting ADCON1:2 to zero, make Vss the ref-, but that didn't have the same result. Hmmm.
by jadiflow
Wed Oct 21, 2020 9:05 am
Forum: 8-Bit PIC
Topic: ADC ground ref setting
Replies: 11
Views: 6467

Re: ADC ground ref setting

Hello Stefan, I kept the source impedance low, 499 ohms. I will check those things you mentioned. I had another question: if I use the ADC in single ended mode, what is the reference for the S/H input? I know that the reference voltage for the ADC can be external, but what is then the ref for the in...
by jadiflow
Tue Oct 20, 2020 4:32 pm
Forum: 8-Bit PIC
Topic: ADC ground ref setting
Replies: 11
Views: 6467

Re: ADC ground ref setting

Hello Stefan, The situation is a bit more clear after I did some more testing today. I am measuring with the DMM directly on the ADC input pins, pin 4 (-ref) and pin 24, the AN9 input I use, measuring less than 1mV. I have a short routine that sets ADCON2 bits 2, 1, 0 to 101, then reads the ADC (8 s...
by jadiflow
Tue Oct 13, 2020 7:53 pm
Forum: 8-Bit PIC
Topic: ADC ground ref setting
Replies: 11
Views: 6467

Re: ADC ground ref setting

Hello Stefan, thank you for this! When I do this in the initialization, at the start of the program, is that then not overridden when the ADC is initialized? Not sure when the ADC initialization happens; does it happen with the first macro call to it? If that happens and there is an error in that pr...
by jadiflow
Tue Oct 13, 2020 1:32 pm
Forum: 8-Bit PIC
Topic: ADC ground ref setting
Replies: 11
Views: 6467

ADC ground ref setting

Hi all, I have a long standing issue with the ADC in my PIC16F1788. I have set the ADC ref to external pin 5, and supply that with a 4.096 ref and that seems to work OK. I am assuming that the ADC ground ref is set to external as well, pin 4. But it seems that the PIC actually uses its Vss as the AD...
by jadiflow
Tue Oct 13, 2020 1:17 pm
Forum: Programming Tips & Tricks
Topic: Multiply integer with float?
Replies: 3
Views: 5922

Re: Multiply integer with float?

Thanks Martin, that is helpful.

Jan Didden
Linear Audio
by jadiflow
Tue Oct 13, 2020 11:53 am
Forum: Programming Tips & Tricks
Topic: Multiply integer with float?
Replies: 3
Views: 5922

Multiply integer with float?

Hi all, question: if I multiply an integer with a floating point number, is the result a float? Will it work correctly?

Jan Didden
Linear Audio
by jadiflow
Mon May 13, 2019 11:17 am
Forum: Bug reports
Topic: Workaround for fround(x,y) for PIC?
Replies: 7
Views: 7127

Re: Workaround for fround(x,y) for PIC?

Hi Medelec, thanks for chiming in. I hadn't seen that post, but as noted above have found an extremely simple solution!

Jan