Hello Rossw,
Dwanye>>Make sure your MCLR pin is set as a input, not reset. .
Rossw>>Not sure what that means, being a newbie to microcontrollers and all. Does this mean I hook up this pin to +5V through a resistor?<<
When you use your HEX programmer, you must do a couple of things... Make sure you choose the "INTOSC" (so the chip will use its internal oscillator, and Make sure your HEX programmer is set us as such...
OSC INTOSC
WTD Enabled
PUT Disabled
BOR Enabled
MCLR input pin
Code Not protected
EEPROM Not protected
Also, I'd eventually like to use 4 other pins for output to LEDs - do I need additional TRISIO commands for that?
Yes, teh TRISIO tells the chip to make the pins Input or Output. You need to have output to light up a LED. You must also make sure that the pins *are* output, by checking the Chips documentation. (It will say I/O pin)
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks