Thanks guys, yes, it sure looks like my circuit was on the edge, so getting a stronger signal is a win-win! The data sheets are "above my pay grade" so I can't appreciate the fine details. Anyway, I don't mind learning and with this forum, it makes it all easier.
HI Evan & Jerry, thanks for the input, but I have figured this out my old "analogue" way! I looked at the input to PORTC.5 with my scope, and found that the input pulses from reading the brushless motor wire are just over 2.0 V and it seems that the older PIC's are fine with that level, but this new chip needs at least 2.5 volts. I removed the motor and used a signal generator and lowered the amplitude until it stopped working, and found that the new chip needs at least 0.5 volts more. I changed...
Thanks Jerry. Looks like I need to write a few more test routines to figure this out. Maybe this 18324 needs a higher logic level than the 684. I can't seem to find that in the data sheet. I'll do some more tests today and report back here.
I just read up on this in the online help and it says: ADOff This command is obsolete. There should be no need to call it. GCBASIC will automatically disable the A/D converter and set all pins to digital mode when starting the program, and after every use of the ReadAD function. It is recommended that this command be removed from all programs. Any other ideas? I would really appreciate some help with this please. Thanks in advance.
OK........so how do set it up in GC Basic to be a digital input?
Here is the same program for the 18324: chip 16F18324, 16 config OSC = Int define RpmOut PORTA.1 define ServoOut PORTC.2 define RpmIn PORTC.5 Dir ServoOut Out Dir RpmIn In Dir RPMOut Out Dim count as Word Dim PW as Word 'Initialise Brushless ESC For count = 0 to 250 PulseOut RpmOut, 1000 us Wait 20 ms Next 'Slow RPM build up For PW = 1000 to 1300 PulseOut RpmOut, Pw us wait 20 ms Next 'Run motor and check if the circuit is 'reading the motor wire pulses Servo: PulseOut RpmOut, 1300 us Wait until...
Hi All, I've now installed the PicKitPlus compilor so now it seems that I've eliminated hardware issues....hopefully! I've been using my pc board for my model plane timers for some years with the 16F684 and because they are no longer easily available and Microchip will stop making them, I was told that I should use the 16F18324 with the same smd package. I had the boards made and poulated with the same parts beside the new PIC chip. I knew that I would need to change some of my software because I...
Hi All, I've now installed the PicKitPlus compilor so now it seems that I've eliminated hardware issues....hopefully! I've been using my pc board for my model plane timers for some years with the 16F684 and because they are no longer easily available and Microchip will stop making them, I was told that I should use the 16F18324 with the same smd package. I had the boards made and poulated with the same parts beside the new PIC chip. I knew that I would need to change some of my software because I...