gnupic: Errors in gputils PIC16F685/687/689/690 header files


Previous by date: 31 May 2006 02:58:41 +0100 Piklab 0.9.0, Nicolas
Next by date: 31 May 2006 02:58:41 +0100 Re: [gnupic] gpsim, documentation, Nestor A. Marchesini
Previous in thread:
Next in thread:

Subject: Errors in gputils PIC16F685/687/689/690 header files
From: "Xiaofan Chen" ####@####.####
Date: 31 May 2006 02:58:41 +0100
Message-Id: <a276da400605301856n3c048e9cp3017817fa134d2be@mail.gmail.com>

Microchip apparently uses different names for the Brown-Out Reset Configuration
bits for some new PICs like 16F631/677/685/687/689/690.

The old names are generally "BODEN" or "BODEN1/BODEN0". Microchip
now uses "BOREN1/BOREN0" for these news PICs.

I find out this when I want to use gputils to build the examples which
comes with the PICKit 2 Starter Kit (PICkit 2 programmer +
LPC demo board).

Maybe the easiest way to solve this is to add the new names
(so examples from Microchip can be built with gputils) along
with the old names (so people used to the old names will have
no problem with their codes).

;;       Configuration Bits
;;

;; the old names
_BOD_ON                      EQU     H'3FFF'
_BOD_NSLEEP               EQU     H'3EFF'
_BOD_SBODEN              EQU     H'3DFF'
_BOD_OFF                     EQU     H'3CFF'
;; the new names
_BOR_ON                       EQU     H'3FFF'
_BOR_NSLEEP                EQU     H'3EFF'
_BOR_SBODEN               EQU     H'3DFF'
_BOR_OFF                      EQU     H'3CFF'



Regards,
Xiaofan

Previous by date: 31 May 2006 02:58:41 +0100 Piklab 0.9.0, Nicolas
Next by date: 31 May 2006 02:58:41 +0100 Re: [gnupic] gpsim, documentation, Nestor A. Marchesini
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.