參數(shù)資料
型號: MC68HC05K3
廠商: Motorola, Inc.
英文描述: 8-Bit Microcontroller Units (MCU).(8位微控制器)
中文描述: 8位微控制器單元(MCU)。(8位微控制器)
文件頁數(shù): 10/56頁
文件大小: 311K
代理商: MC68HC05K3
Application Note
Software Implementation
AN1288
10
MOTOROLA
The algorithm implemented in K3EEPROG is:
1.
Clear the PEBSR bit select register to point to the first bit in the
PEEPROM.
2.
Load the row counter with a value of 16.
3.
Clear the index register.
4.
Read data from the current PEEPROM row.
a.
Rotate location $0F, the PECSR status/control register, to the
left. Bit 7 of the register contains the data in the bit that is being
accessed currently.
b.
Rotate the data bit into the accumulator.
c.
Increment the PEBSR bit select register to point to the next bit.
d.
Check to see if the PEPCZF bit, bit 0, in the PECSR
status/control register is set. If the bit is set, all the bits of the
current row have been read and the 0 column bit of the next
row is being accessed. If the bit is clear, continue reading the
bits from the row.
5.
The accumulator now contains the data read from a complete row
of the PEEPROM. Store this data in the location pointed to by
address $C0 plus the current offset in the index register.
6.
Increment the index register to point to the next address in the
user data buffer.
7.
Decrement the row counter variable. If the result is 0, all the rows
in the PEEPROM have been read and the reading algorithm ends
by unconditionally branching to address $11B. Otherwise, read
the next row or byte.
For a full listing of the code used to implement the programming
algorithm, see
Assembly Code Modules
.
K3EEPROG was written and compiled in C with Borland’s C++ version
3.1 package. The program was linked with Borland’s TLINK version
5.22b. K3EEPROG provides a simple interface for interaction with the
user. The interface consists of a three-line text menu with three
commands:
Program PEEPROM
,
Read PEEPROM
, and
Exit to DOS
.
相關(guān)PDF資料
PDF描述
MC68HC805K3 8-Bit Microcontroller Units (MCU).(8位微控制器)
MC68HC05L16 80-Pin Microcontroller Unit (MCU) With Highly Sophisticated On-Chip Peripheral Functions(80腳、8位帶高級外圍電路功能的微控制器單元)
MC68HC05P18A Low Cost HCMOS Microcontroller(低成本、8位HCMOS微控制器)
MC68HC05P4A 28-pin MCU (microcontroller unit) based on the MC68HC05P4(28引腳、基于MC68HC05P4升級的8位微控制器單元)
MC68HC05PV8A Low Cost HCMOS Microcontroller(低成本、8位HCMOS微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC05K3CDW 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS Microcontroller Unit
MC68HC05K3CP 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS Microcontroller Unit
MC68HC05K3CSD 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS Microcontroller Unit
MC68HC05K3DW 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS Microcontroller Unit
MC68HC05K3P 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS Microcontroller Unit