Search found 306 matches

by richardb
Mon Dec 11, 2023 9:06 am
Forum: User Modules
Topic: rs-485
Replies: 12
Views: 47620

rs-485

Hi I don't know if anyone has a simple fix for this but I have just started using rs-485 and don't have much experience with it. I wanted to add this to an existing project, and i was just planning on setting the DE/_RE signal manually just before sending and setting low after sending but it seems t...
by richardb
Fri Nov 17, 2023 12:57 pm
Forum: Modules
Topic: HPWM/HPWM2/HPWM3 hardware PWM modules
Replies: 16
Views: 80861

Re: HPWM/HPWM2/HPWM3 hardware PWM modules

Nice, Thanks Again Jerry.
by richardb
Fri Nov 17, 2023 8:05 am
Forum: Modules
Topic: HPWM/HPWM2/HPWM3 hardware PWM modules
Replies: 16
Views: 80861

Re: HPWM/HPWM2/HPWM3 hardware PWM modules

thanks for the reply, its odd as it implies in datasheet that it's double buffered. Anyway the method I used definitely works all the time correctly on this specific pic, as i can trigger the scope on the analogue voltage glitch .

I just thought i would report it in case anyone else has this problem.
by richardb
Tue Nov 14, 2023 9:45 am
Forum: Modules
Topic: HPWM/HPWM2/HPWM3 hardware PWM modules
Replies: 16
Views: 80861

Re: HPWM/HPWM2/HPWM3 hardware PWM modules

I have noticed the normal duty sub glitches periodically but my example code when using duty2 sub seems to work correctly. the pink trace is the tp signal yellow the pwm switched op light blue the voltage out of the psu. Device = 18F26k22 Clock = 64 'adc needs changing to work at 64mhz Include"IntOS...
by richardb
Wed Oct 11, 2023 7:46 am
Forum: Modules
Topic: HPWM/HPWM2/HPWM3 hardware PWM modules
Replies: 16
Views: 80861

Re: HPWM/HPWM2/HPWM3 hardware PWM modules

ok so seconds after posting i thought i'd try changing to c.0 as the output and that worked....

but only after adding

Code: Select all

while true
wend
to the end of the program



also a.1 and a.0 worked.

thanks again Jerry.
by richardb
Wed Oct 11, 2023 7:23 am
Forum: Modules
Topic: HPWM/HPWM2/HPWM3 hardware PWM modules
Replies: 16
Views: 80861

Re: HPWM/HPWM2/HPWM3 hardware PWM modules

ok so it compiles , but doesnt output anything . i tried to do an led test to check it was all working and noticed some of the other pins don't work as normal outputs. Device = 18F06Q41 Clock = 64 Config FEXTOSC = OFF, // Oscillator not enabled RSTOSC = HFINTOSC_64MHZ,// HFINTOSC with HFFRQ = 64 MHz...
by richardb
Tue Oct 10, 2023 1:19 pm
Forum: Modules
Topic: HPWM/HPWM2/HPWM3 hardware PWM modules
Replies: 16
Views: 80861

Re: HPWM/HPWM2/HPWM3 hardware PWM modules

Thanks Jerry I'll have a look tomorrow.
by richardb
Tue Oct 10, 2023 11:32 am
Forum: Modules
Topic: HPWM/HPWM2/HPWM3 hardware PWM modules
Replies: 16
Views: 80861

Re: HPWM/HPWM2/HPWM3 hardware PWM modules

just a quicky i have just tried this with an 18F06Q41 and immediately throws a pin error
"invalid Hpwm_pin selection for 18f06q41.

has anyone tried this part with pwm and do you have a known working config.

Rich
by richardb
Mon Dec 20, 2021 9:27 pm
Forum: General
Topic: Any thoughts on q41 parts?
Replies: 18
Views: 13965

Re: Any thoughts on q41 parts?

Great that worked.

and even managed to get the internal ref to work.


BTW the noise on the ADC seems low at 1or2 counts and no big offset like the k80 pics


This is starting to look like a very flexible small part.

Thanks again Jerry
by richardb
Mon Dec 20, 2021 10:59 am
Forum: General
Topic: Any thoughts on q41 parts?
Replies: 18
Views: 13965

Re: Any thoughts on q41 parts?

I hate to ask again but is there anything obvious i need to do to get the adc working in the 06q41 part, i see the adc is very different and have tried setting some of the registers manually but i just read zeros, and there are 45 pages to do with the adc!!!



Rich
by richardb
Sun Dec 19, 2021 6:29 pm
Forum: General
Topic: Any thoughts on q41 parts?
Replies: 18
Views: 13965

Re: Any thoughts on q41 parts?

Argh!!! so after unplugging the programmer the led flashing started again. it seems that after upgrading the ipe to allow for programming 18f06q41's the programmer forgot i wanted to leave the pic out of reset, even after it supposedly had used "previous setting" from a previous installation. Thanks...
by richardb
Sun Dec 19, 2021 6:21 pm
Forum: General
Topic: Any thoughts on q41 parts?
Replies: 18
Views: 13965

Re: Any thoughts on q41 parts?

Thanks for getting back to me quickly. OK been out Christmas shopping and came back and found the led flashing.... so powered off and back on and still flashing. re flashed the pic and the flashing stopped again.... I was at version 2.2.3.6 and 1.2.0.6 so did the update zip and the versions were upt...
by richardb
Sun Dec 19, 2021 12:14 pm
Forum: General
Topic: Any thoughts on q41 parts?
Replies: 18
Views: 13965

Re: Any thoughts on q41 parts?

Hi Again, Looks like I've failed at the basics, i cant get an led to flash on internal osc i have the following code Device = 18F06Q41 Clock = 64 Config FEXTOSC = OFF, // Oscillator not enabled RSTOSC = HFINTOSC_64MHZ,// HFINTOSC with HFFRQ = 64 MHz and CDIV = 1:1 CLKOUTEN = OFF // CLKOUT function i...
by richardb
Thu Dec 09, 2021 9:48 am
Forum: General
Topic: Any thoughts on q41 parts?
Replies: 18
Views: 13965

Re: Any thoughts on q41 parts?

Thanks Jerry for those links. We have bought 100 of the PIC18F06Q41 and I've designed a very simple board for purely for testing I'm interested in how good the adc is and how well the opamp works as I've not really tried using opamps on pics before.


Rich
by richardb
Fri Nov 05, 2021 7:35 am
Forum: General
Topic: Any thoughts on q41 parts?
Replies: 18
Views: 13965

Re: Any thoughts on q41 parts?

Thanks for the offer Jerry



Rich