The PIC16f722 was doing funny things, in desperation I threw it away and went back to the trusty 16F88 however this is not working for me either.
The PicKit 3 I bought was driving me mad also, so it's back to the ETT programmer and PicKit 2 software.
It compiles and assembles ok, but it will not program. The programmer says "Verification of Configuration Failed" It programs fine if I get rid of anything to do with HSEROUT the defines and the command.
But the instant I bring in an HSEROUT command it will fail.
Here's the code:
I'm going completely nuts over this and I think I'm about to get fired for being so useless. Please helpCode:@ __config _CONFIG1, _XT_OSC & _WDT_ON & _LVP_OFF & _CP_OFF & _MCLR_OFF 'pic16f88 ADCON0 = %00000000 'ADC Disabled DEFINE OSC 4 DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1 DEFINE HSER_SPBRG 25 ' 9600 Baud @ 4MHz, 0.16% DEFINE HSER_CLROERR 1 ' Clear overflow automatically ANSEL = 0 'ALL DIGITAL CMCON = 7 'COMPARATORS OFF INTCON = 0 'Disable interrupts TRISB = %00001111 'SET PORTB RB2(RX) as input, others to OUTPUT TRISA = %00000000 'SET PORTA AS OUTPUTS porta = 63 PAUSE 1000 'LeftBtn Var PORTB.1 'RiteBtn Var PORTB.3 'StopBtn VAR PORTB.0 'RadioEn var PortB.4 B0 VAR BYTE B1 var byte B2 var byte TXdata var byte Direction var byte LEDPtrn var byte WakeVar var byte MtrPwr var bit pause 1000 clear porta = 0 start: txdata = 100 hserout [txdata] pause 1000 goto start




Bookmarks