Rev. 1.60
196
August 20, 2019
Rev. 1.60
197
August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
In the auto scan mode the key oscillator and reference oscillator will automatically be enabled when
the TKST bit is set from low to high and disabled automatically when the TKBUSY bit changes from
high to low. When the TKST bit is set from low to high in the auto scan mode, the first reference
oscillator internal capacitor value will be read from a specific location of the dedicated touch key
data memory and loaded into the corresponding TKMnROH/TKMnROL registers. Then the 16-bit
C/F counter value will be written into the last location of the corresponding touch key module data
memory. After this the selected key will be scanned in time slot 0. At the end of the time slot 0 key
scan operation, the reference oscillator internal capacitor value for the next selected key will be read
from the touch key data memory and loaded into the the next TKMnROH/TKMnROL registers.
Then the 16-bit C/F counter value of the current scanned key will be written into the corresponding
touch key data memory. The whole auto scan operation will sequentially be carried out in the above
specific way from time slot 0 to time slot 3. After four keys are scanned, the TKRCOV bit will be
set high and the TKBUSY bit will be set low. At the end of the auto scan mode, the first reference
oscillator internal capacitor value will again be read from the touch key data memory and loaded
into the corresponding TKMnROH/TKMnROL registers. Then the 16-bit C/F counter value will
again be written into the relevant touch key data memory.
Touch Key Data Memory
The device provides two dedicated Data Memory area for the touch key auto scan mode. One area
is used to store the 16-bit C/F counter values of the touch key module 0~n and located in Data
Memory Sector 5. The other area is used to store the reference oscillator internal capacitor values of
the touch key module 0~n and located in Data Memory Sector 6.
Device
Touch Key Data Memory
Sector : Address
BS66F340
5: 00H~17H
6: 00H~17H
BS66F350
5: 00H~27H
6: 00H~27H
BS66F360
5: 00H~37H
6: 00H~37H
BS66F370
5: 00H~47H
6: 00H~47H
Touch Key Data Memory Summary