Rev. 1.00
30
March 24, 2020
Rev. 1.00
31
March 24, 2020
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
Reading Data from the Emulated EEPROM – polling method
MOV A, EEPROM_ADRES ; user defined address
MOV EAR, A
SET ERDEN ; set ERDEN bit, enable read operation
SET ERD ; start Read Cycle – set ERD bit
BACK:
SZ ERD ; check for read cycle end
JMP BACK
CLR ECR ; disable Emulated EEPROM read if no more read operations are
;
required
MOV A, ED0L ; move read data to register
MOV READ_DATA_L, A
MOV A, ED0H
MOV READ_DATA_H, A
Note: For each read operation, the address register should be re-specified followed by setting the
ERD bit high to activate a read cycle even if the target address is consecutive.
Oscillators
Various oscillator options offer the user a wide range of functions according to their various
application requirements. The flexible features of the oscillator functions ensure that the best
optimisation can be achieved in terms of speed and power saving. Oscillator selections and operation
are selected through the application program by using relevant control registers.
Oscillator Overview
In addition to being the source of the main system clock the oscillators also provide clock sources
for the Watchdog Timer and Time Base Interrupts. Two fully integrated internal oscillators, requiring
no external components, are provided to form a wide range of both fast and slow system oscillators.
The high frequency oscillator provides higher performance but carries with it the disadvantage of
higher power requirements, while the opposite is of course true for the lower frequency oscillator.
With the capability of dynamically switching between fast and slow system clock, the device has the
flexibility to optimise the performance/power ratio, a feature especially important in power sensitive
portable applications.
Type
Name
Frequency
Internal High Speed RC
HIRC
8MHz
Internal Low Speed RC
LIRC
32kHz
Oscillator Types
System Clock Configurations
There are two oscillator sources, a high speed oscillator and a low speed oscillator. The high speed
oscillator is an internal 8MHz RC oscillator, known as the HIRC. The low speed oscillator is the
internal 32kHz RC oscillator, known as the LIRC. The frequency of the slow speed or high speed
system clock is also determined using the CKS2~CKS0 bits in the SCC register.