How are the configs setup?
How are the configs setup?
Dave
Always wear safety glasses while programming.
I always stay away from analog pins until I get a basic program running.
Robert
Thanks Robert - Unfortunatley this device has so many options per pin. If I stay away from the analog pins then I run into PWM pins, motion feedback pins and others that I haven't got my head around yet. I thought the RA0/AN0 option was the path of leas resistance.
Dave, I am using my MeProgrammer to configure the device at time of programming.
Details are as follows:
Oscillator = INTRC
Inernal External Switch Over = Enabled
Fail-Safe Clock Monitor - Enabled
Power-Up Timer = Disabled
Brown-Out Reset = Enabled
Brown-Out Reset Voltage = 2.0V
Watchdog Timer = Enabled
Watchdog Timer Postscaler = 1:512
Watchdog Timer Window = Enabled
PWM Pins = Disabled on Reset
Low-Side Transistor Polarity = Active High
High-Side Transistor Polarity = Active High
Special Event Reset = Disabled
MCLR Pin Function = Reset
Stack Overflow/Underflow Reset = Enabled
Low Voltage Programming = Disabled
All other memory options are "Not Protected"
Cheers
Barry
VK2XBP
Update:
I have added the following lines to my Blinky LED program:
I was confident I would see a blinking LED after these changes but was sadly mistaken...Code:ANSEL0 = 0 ' Set all PORTA as digital I/O ADCON0.0 = 0 ' Disable A/D module TRISA = 0 ' Set PORTA as output
Cheers
Barry
VK2XBP
Some will disagree, but I have never trusted the programmer to set the configs.
What version of PBP are you running?
Dave
Always wear safety glasses while programming.
Ver 3.0.1.4
How should I manually set the configs and/or which configs are critical for my simple application?
I went back to the LCD test program and noticed that I do get two lines of text appearing BUT the timing is way out of kilter - maybe by a factor of 10 or 20?
I am pretty sure I have a clock issue. I don't have any crystals to drop in place but will try to get some tomorrow. I will also re-try the Blinky LED program and reduce the time between toggles to see if I can get something happening...
Cheers
Barry
VK2XBP
Bookmarks