Freescale MC68HC908JB8 Constants


#ifndef MC68HC908JB_H #define MC68HC908JB_H
Inclusion guard
#include "types.h"
#ifdef SDCC #define location(addr) volatile xdata at addr uint8 #define asm(asm) _asm asm _endasm; #else #define location(addr) unsigned char #endif
USB Interrupt Register 1:
$0018Read: USBEN UADD6 UADD5 UADD4 UADD3 UADD2 UADD1 UADD0
Write:
USB Interrupt Register 0:
$0039Read: EOPIE SUSPND TXD2IE RXD2IE TXD1IE 0 TXD0IE RXD0IE
Write:
USB Interrupt Register 1:
$003ARead: EOPF RSTF TXD2F RXD2F TXD1F RESUMF TXD0F RXD0F
Write:
USB Interrupt Register 2:
$0018Read: 00000000
Write: EOPFR RSTFR TXD2FR RXD2FR TDX1FR RESUMFR TXD0FR RXD0FR
USB Control Register 0:
$003BRead: T0SEQ 0 TX0E RX0E TP0SIZ3 TP0SIZ2 TP0SIZ1 TP0SIZ0
Write:
USB Control Register 1:
$003CRead: T1SEQ STALL1 TX1E FRESUM TP1SIZ3 TP1SIZ2 TP1SIZ1 TP1SIZ0
Write:
USB Control Register 2:
$0019Read: T2SEQ STALL2 TX2E RX2E TP2SIZ3 TP2SIZ2 TP2SIZ1 TP2SIZ0
Write:
USB Control Register 3:
$001ARead: TX1ST 0 OSTALL0 ISTALL1 0 PULLEN ENABLE2 ENABLE1
Write: TX1STR
USB Control Register 4:
$001BRead: 00000 FUSBO FDP FDM
Write:
USB Status Register 0:
$003DRead: R0SEQ SETUP 0 0 RP0SIZ3 RP0SIZ2 RP0SIZ1 RP0SIZ0
Write:
USB Status Register 1:
$003ERead: R2SEQ TXACK TXNAK TXSTL RP2SIZ3 RP2SIZ2 RP2SIZ1 RP2SIZ0
Write:
USB endpoint start addresses
Serial Communication Interface (SCI) Control Register #1:
$0013Read: LOOPS ENSCI TXINV M WAKE ILTY PEN PTY
Write:
SCI Control Register #2:
$0014Read: SCTIE TCIE SCRIE ILIE TE RE RWU SBK
Write:
SCI Control Register #3:
$0015Read: R8 T8 R R ORIE NEIE FEIE PEIE
Write:
SCI Status Register #1:
$0016Read: SCTE TC SCRF IDLE OR NF FE PE
Write: R R R R R R R R
SCI Status Register #2:
$0017Read: 000000 BKF RPF
Write: R R R R R R R R
#define SCIDR 0x0018
SCI Data Register: Read and write data from the SCI
SCI Baud Rate Register:
$0019Read:00 SCP1 SCP0 SCR2 SCR1 SCR0
Write:

PLL Programming Register (PPG):
$001ERead: MUL7 MUL6 MUL5 MUL4 VRS7 VRS6 VRS5 VRS4
Write:
Mask Option Register (MOR):
$001FRead:0 ROMSEC LVIRSTD LVIPWRD SSREC COPL STOP COPD
Write: R R R R R R R
Close inclusion guard