In Circuit Programming
The provision of Flash type Program Memory provides the user with a means of convenient and easy
upgrades and modifications to their programs on the same device.
As an additional convenience, Holtek has provided a means of programming the microcontroller
in-circuit using a 5-pin interface. This provides manufacturers with the possibility of manufacturing
their circuit boards complete with a programmed or un-programmed microcontroller, and then
programming or upgrading the program at a later stage. This enables product manufacturers to easily
keep their manufactured products supplied with the latest program releases without removal and
re-insertion of the device.
The Holtek Flash MCU to Writer Programming Pin correspondence table is as follows:
Holtek Writer
Pin Name
Pin Description
ICPDA
PA0
Serial Address and data -- read/write
ICPCK
PA2
Address and data serial clock input
ICPMS
RES
Programming Mode Select
VDD
VDD
Power Supply (5.0V)
VSS
VSS
Ground
The Program Memory and EEPROM data memory can both be programmed serially in-circuit using
this 5-wire interface. Data is downloaded and uploaded serially on a single pin with an additional
line for the clock. Two additional lines are required for the power supply and one line for the reset.
The technical details regarding the in-circuit programming of the devices are beyond the scope of
this document and will be supplied in supplementary literature.
During the programming process the RES pin will be held low by the programmer disabling the
normal operation of the microcontroller and taking control of the PA0 and PA2 I/O pins for data and
clock programming purposes. The user must there take care to ensure that no other outputs are
connected to these two pins.
BS83B08-3/B12-3/B16-3/B16G-3/C24-3
8-Bit Touch Key Flash MCU
Rev. 1.50
23
April 28, 2020
V D D
I C P M S
I C P D A
I C P C K
V S S
T o o t h e r C i r c u i t
P A 0
P A 2
V S S
R E S
V D D
W r i t e r
C o n n e c t o r S i g n a l s
M C U
P r o g r a m m i n g P i n s
*
*
*
Note:
* may be resistor or capacitor. The resistance of * must be greater than 1k
W
or the capacitance
of * must be less than 1nF.