MC68HC912B32CFU8 Freescale Semiconductor, MC68HC912B32CFU8 Datasheet - Page 211

no-image

MC68HC912B32CFU8

Manufacturer Part Number
MC68HC912B32CFU8
Description
IC MCU 32K FLASH 8MHZ 80-QFP
Manufacturer
Freescale Semiconductor
Series
HC12r
Datasheet

Specifications of MC68HC912B32CFU8

Core Processor
CPU12
Core Size
16-Bit
Speed
8MHz
Connectivity
SCI, SPI
Peripherals
POR, PWM, WDT
Number Of I /o
63
Program Memory Size
32KB (32K x 8)
Program Memory Type
FLASH
Eeprom Size
768 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
80-QFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC912B32CFU8
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC68HC912B32CFU8
Manufacturer:
FREESCALE
Quantity:
20 000
; ----------------------------------------------------------------------
;
; ----------------------------------------------------------------------
TRANS: BRCLR
; ----------------------------------------------------------------------
;
; ----------------------------------------------------------------------
DATA:
EOT:
14.6 Synchronous Character Transmission using the SPI
This program is intended to communicate with the HC11 on the UDLP1 board. It utilizes the SPI to
transmit synchronously characters in a string to be displayed on the LCD display. The program must
configure the SPI as a master, and non-interrupt driven. The slave peripheral is chip-selected with the SS
line at low voltage level. Between 8 bit transfers the SS line is held high. Also the clock idles low and
takes data on the rising clock edges. The serial clock is set not to exceed 100 kHz baud rate.
14.6.1 Equipment
For this exercise, use the M68HC912B32EVB emulation board.
14.6.2 Code Listing
Freescale Semiconductor
TABLE : DATA TO BE TRANSMITTED
MOVB
LDAA
STD
LDX
RTS
MOVB
CPX
BNE
RTS
DC.B
DC.B
DC.B
DC.B
DC.B
END
TRANSMIT SUBROUTINE
A comment line is deliminted by a semi-colon. If there is no code before
comment, an “;” must be placed in the first column to avoid assembly
errors.
#$08,SC1CR2
SC1SR1
SC1DRH
#DATA
SC1SR1,#$80, TRANS ; Wait for TDRE flag
1,X+,SC1DRL
#EOT
TRANS
'Freescale HC12 Banner - June, 1999'
$0D,$0A
'Scottsdale, Arizona'
$0D,$0A
$04
M68HC12B Family Data Sheet, Rev. 9.1
; Set for No Ints, and Transmitter enabled(SC1CR2)
; 1st step to clear TDRE flag: Read SC1SR1
; 2nd step to clear TDRE flag: Write SC1DR register
; Use X as a pointer to DATA.
; Return from subroutine
; Transmit character, increment X pointer
; Detect if last character has been transmitted
; If last char. not equal to "eot", Branch to TRANS
; else Transmission complete, Return from Subroutine
; Return (cr) ,Line Feed (LF)
; Return (cr) ,Line Feed (LF)
; Byte used to test end of data = EOT
; End of program
NOTE
Synchronous Character Transmission using the SPI
211

Related parts for MC68HC912B32CFU8