Easy one here. I can't find a datasheet for an 18F1822. Correct number, code, schematic and what you've done in the attempt to correct issue might help us help you.
Easy one here. I can't find a datasheet for an 18F1822. Correct number, code, schematic and what you've done in the attempt to correct issue might help us help you.
Sorry about that. The part is right in one part of the post! It is a 12F1822.
The code is below - I am just trying to get a blinking light at this point(code from this forum). Thanks for your kindness is responding. As far as a schematic, I have 5 Volts, Ground and a connection to an LED on Port A.1 through a 1K resistor.
#CONFIG
_CONFIG _CONFIG1, _CLKOUTEN_OFF & _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _BOREN_ON & _IESO_OFF & _FCMEN_OFF
_CONFIG _CONFIG2, _PLLEN_OFF & _LVP_OFF & _STVREN_ON & _BORV_19
#ENDCONFIG
PORTA = 0 ' LED Off
TRISA = 0 ' all outputs
OSCCON = %01101000 ' 4MHz internal
ANSELA = 0 ' all digital
Here:
HIGH PORTA.1
PAUSE 500
LOW PORTA.1
PAUSE 500
GOTO Here
END
Bookmarks