參數(shù)資料
型號(hào): MC68HC908LB8
廠商: 飛思卡爾半導(dǎo)體(中國(guó))有限公司
英文描述: On-Chip FLASH Programming Routines
中文描述: 片上閃存編程例程
文件頁(yè)數(shù): 26/36頁(yè)
文件大?。?/td> 150K
代理商: MC68HC908LB8
On-Chip FLASH Programming Routines, Rev. 4
26
Freescale Semiconductor
On-Chip Routines Source Code
;*********************************************************************
;* NAME: GetByte
;* PURPOSE:
;* Get one byte data through PTA0 serially. This routine supports
;* a baud rate 9600 bps at internal 4MHz and external 2.4576MHz bus
;* frequencies. A clock is distinguished by the state of ECGST bit
;* (bit 0) in OSCSTAT. When ECGST=1, an external clock is selected.
;* ENTRY CONDITIONS:
;* PTA0 configured as an input.
;* EXIT CONDITIONS:
;* A contains a byte received when START bit is detected
;* C-bit in CCR indicates a framing error
;* If C-bit is cleared, a framing error is indicated because
;* the STOP bit was detected as a 0 instead of a 1
;* PTA0 configured as an input
;* SUBROUTINES CALLED: GetBit
;* VARIABLES READ:
;* VARIABLES MODIFIED:
;* STACK USED: 6 (including the call to this routine)
;* SIZE: 18 bytes
;* DESCRIPTION: EXECUTED OUT OF ROM
;* Once called, program will remain in GetByte until a byte is
;* received. Signal to start receiving a byte is a valid
;* (low) START bit.
;* This routine does not service COP.
;* NOTE: Cycle path for each bit reception must be kept the same to
;* maintain a steady baud rate.
;* When OSCSTAT[0]=0 (internal clock is selected):
;* 9+(28+10*38)= 417 cycles @ 4.0 MHZ=104.3 us=9592 bps
;* (closest PC baud rate 9,600 bps)
;* When OSCSTAT[0]=1 (external clock is selected):
;* 9+(27+10*22) = 256 cycles @ 2.4576 MHZ = 104 us = 9,600 bps
;*********************************************************************
GetByte: brset 0,PTA,GetByte ;[.r...] loop till PTA0=0 (start)
bsr GetBit ;[4+GetBit] check sense of start bit
bcs GetByte ;[3] C-bit should be 0, else noise
lda #$80 ;[2] Rx byte done when 1 RORs into C
NextBit: ; top of loop to get 8 bits
bsr GetBit ;[4+GetBit] sense level of next bit
rora ;[1] rotate into A from left
nop ;[1] pad to tune timing
bcc NextBit ;[3] continue 'till 1 RORs into C
stpBit: bsr GetBit ;[4+GetBit] sense level of stop bit
rts ;[4]
;* GetByte DONE ******************
;*********************************************************************
;* NAME: PutByte
;* PURPOSE:
;* Send one byte data through PTA0 serially. This routine supports
;* a baud rate 9600 bps at internal 4MHz and external 2.4576MHz bus
;* frequencies. A clock is distinguished by the state of ECGST bit
;* (bit 0) in OSCSTAT. When ECGST=1, an external clock is selected.
;* ENTRY CONDITIONS:
;* PTA0 configured as an input, PTA0 data bit = 0
;* A contains data to be sent
;* EXIT CONDITIONS:
相關(guān)PDF資料
PDF描述
MC68HC908LD60 Microcontrollers
MC68HC908LD64 Microcontrollers
MC68HC908LJ12CFB 8-bit microcontroller units
MC68HC908LJ12 8 bit Microcontroller Unit (MCU)(8位MCU)
MC68HC908LJ24 8 bit Microcontroller Unit (MCU)(8位MCU)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC908LB8CDWE 功能描述:IC MCU 8K FLASH 8MHZ 20SOIC RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:HC08 標(biāo)準(zhǔn)包裝:250 系列:56F8xxx 核心處理器:56800E 芯體尺寸:16-位 速度:60MHz 連通性:CAN,SCI,SPI 外圍設(shè)備:POR,PWM,溫度傳感器,WDT 輸入/輸出數(shù):21 程序存儲(chǔ)器容量:40KB(20K x 16) 程序存儲(chǔ)器類型:閃存 EEPROM 大小:- RAM 容量:6K x 16 電壓 - 電源 (Vcc/Vdd):2.25 V ~ 3.6 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 6x12b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 125°C 封裝/外殼:48-LQFP 包裝:托盤(pán) 配用:MC56F8323EVME-ND - BOARD EVALUATION MC56F8323
MC68HC908LB8CPE 功能描述:IC MCU 8K FLASH 8MHZ 20DIP RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:HC08 標(biāo)準(zhǔn)包裝:250 系列:56F8xxx 核心處理器:56800E 芯體尺寸:16-位 速度:60MHz 連通性:CAN,SCI,SPI 外圍設(shè)備:POR,PWM,溫度傳感器,WDT 輸入/輸出數(shù):21 程序存儲(chǔ)器容量:40KB(20K x 16) 程序存儲(chǔ)器類型:閃存 EEPROM 大小:- RAM 容量:6K x 16 電壓 - 電源 (Vcc/Vdd):2.25 V ~ 3.6 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 6x12b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 125°C 封裝/外殼:48-LQFP 包裝:托盤(pán) 配用:MC56F8323EVME-ND - BOARD EVALUATION MC56F8323
MC68HC908LB8MDWE 功能描述:IC MCU 8K FLASH 8MHZ 20SOIC RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:HC08 標(biāo)準(zhǔn)包裝:250 系列:56F8xxx 核心處理器:56800E 芯體尺寸:16-位 速度:60MHz 連通性:CAN,SCI,SPI 外圍設(shè)備:POR,PWM,溫度傳感器,WDT 輸入/輸出數(shù):21 程序存儲(chǔ)器容量:40KB(20K x 16) 程序存儲(chǔ)器類型:閃存 EEPROM 大小:- RAM 容量:6K x 16 電壓 - 電源 (Vcc/Vdd):2.25 V ~ 3.6 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 6x12b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 125°C 封裝/外殼:48-LQFP 包裝:托盤(pán) 配用:MC56F8323EVME-ND - BOARD EVALUATION MC56F8323
MC68HC908LB8MPE 功能描述:IC MCU 8K FLASH 8MHZ 20DIP RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:HC08 標(biāo)準(zhǔn)包裝:250 系列:56F8xxx 核心處理器:56800E 芯體尺寸:16-位 速度:60MHz 連通性:CAN,SCI,SPI 外圍設(shè)備:POR,PWM,溫度傳感器,WDT 輸入/輸出數(shù):21 程序存儲(chǔ)器容量:40KB(20K x 16) 程序存儲(chǔ)器類型:閃存 EEPROM 大小:- RAM 容量:6K x 16 電壓 - 電源 (Vcc/Vdd):2.25 V ~ 3.6 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 6x12b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 125°C 封裝/外殼:48-LQFP 包裝:托盤(pán) 配用:MC56F8323EVME-ND - BOARD EVALUATION MC56F8323
MC68HC908LB8VDWE 功能描述:IC MCU 8K FLASH 8MHZ 20-SOICW RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:HC08 標(biāo)準(zhǔn)包裝:1 系列:87C 核心處理器:MCS 51 芯體尺寸:8-位 速度:16MHz 連通性:SIO 外圍設(shè)備:- 輸入/輸出數(shù):32 程序存儲(chǔ)器容量:8KB(8K x 8) 程序存儲(chǔ)器類型:OTP EEPROM 大小:- RAM 容量:256 x 8 電壓 - 電源 (Vcc/Vdd):4 V ~ 6 V 數(shù)據(jù)轉(zhuǎn)換器:- 振蕩器型:外部 工作溫度:0°C ~ 70°C 封裝/外殼:44-DIP 包裝:管件 其它名稱:864285