Search found 309 matches

by richardb
Tue Dec 19, 2023 7:20 am
Forum: User Modules
Topic: rs-485
Replies: 12
Views: 47632

Re: rs-485

Great I might try this next year :)

PS any suggestions for a bootloader for either of these parts for internal osc at 64MHz? for rs232...



Thanks again Jerry



Rich
by richardb
Wed Dec 13, 2023 1:02 pm
Forum: User Modules
Topic: rs-485
Replies: 12
Views: 47632

Re: rs-485

i will look t that part as i have a board that has an 18f26k22 and possibly looks pin compatible. unfortunately the main board that i wanted to add rs485 has an older 18f6723 which is 64 pins and i cant seem to find any q parts with that many pins. i have to say i find the microchip website just so ...
by richardb
Tue Dec 12, 2023 6:39 pm
Forum: User Modules
Topic: rs-485
Replies: 12
Views: 47632

Re: rs-485

Thanks Jerry

Good call on the Q series parts.

I think i'll put up with the delay for now but i will look to see if i can swap in a q series part at some stage.

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

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: 80890

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: 80890

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: 80890

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: 80890

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: 80890

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: 80890

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: 80890

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: 14661

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: 14661

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: 14661

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: 14661

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...