Hi
I use PBC 2.60B
I have some problem with the following code. It was written for PIC16F877A but i want to run it with a PIC16F887.
I have read the data for the PIC16F688 but i cant figure out if it is BOR_OFF or BOREN_OFF i should use. Anyhow non of them semes to work.
I got the error:
Error PBC3.ASM 146 : [225] UNDEFINED SYMBOL "BOR.OFF"
Thank you for any help.
'************************************************* ***********************
'* Name : RTC clock with time set buttons.BAS *
'* Author : [Ole Thronborg] *
'* Notice : Copyright No *
'* : All Rights Reserved *
'* Date : 28-08-2013 *
'* Version : 1.0 *
'* Notes : Formly the code was for a PIC16F877A but now *
'* changed to PIC16F887. *
'* Error 1 : BOR_OFF is not accepted for PIC16F887 *
'* Error 2 : Error PBC3.ASM 146 : [225] UNDEFINED SYMBOL "BOR.OFF" *
'************************************************* ***********************
@ device pic16F887, HS_OSC, LVP_OFF, BOR_OFF, WDT_OFF
DEFINE OSC 20
DEFINE LCD_DREG PORTD
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTE
DEFINE LCD_RSBIT 1
DEFINE LCD_EREG PORTE
DEFINE LCD_EBIT 0
TRISD = $00
SW1 VAR PORTB.0
SW2 VAR PORTB.1
SW3 VAR PORTB.2
...
Bookmarks