Page 2
Bluetrum Technology Appendix I Revision History Date Version Comments Revised by 2018-07-03 0.0.1 First draft 2018-07-12 0.0.2 Add PWM Hugo 2018-08-13 0.0.3 Add RTC Hugo 2018-08-24 0.0.5 Add QDID Hugo 2018-09-11 0.0.6 Update uart0baud description 2018-09-27 0.0.7 Remove package...
1Product Overview 1 Product Overview 1.1 Introduce AB53XX is a 32 bits RISC microcontroller. It integrates advanced digital and analog peripherals to audio player applications. DAC/PA FM RX FM TX CODEC SPDIF RX DSP ENGINE SD/MMC Memory USB2.0 PMU(Charger Bluetooth /Buck) GPIO/PWM UART...
1Product Overview 1.2 Features SNR, with headphone amplifier output; CPU and Flexible IO Peripheral and Interfaces 32bit High performance with instruction Three 32-bit timers; Flexible GPIO pins with Programmable pull-up and Three multi-function 32-bit timers, support pull-down resistors; Capture and PWM mode; Support GPIO wakeup or interrupt;...
2Interrupts 2 Interrupts Support vectorized interrupts, exceptions on illegal instructions and exceptions on load and store instructions to invalid addresses. Exception vectors Interrupt Address Description number 0x00 Reset 0x10 0x20 0x30 0x40 Low priority interrupt 0x50 0x60 0x70 0x80~0x280 High priority interrupt(see the following table) High priority interrupt vectors Interrupt Address...
3GPIO Management 3 GPIO Management 3.1 Features Control GPIO input/output direction by using direction register; Internal pull-up/pull-down resistor by using pull-up/pull-down resistor control register; Select suitable output driving current capability; 3.2 GPIO general control register Register 3-1GPIOA: Port A data Register Name Mode Default...
3GPIO Management Name Mode Default Description 31:8 Unused PAx 200KΩ pull-up resister control. Valid when PAx is used as input GPIOAPU 0: disable 1: enable Register 3-8GPIOAPD200K: Port A pull-down resister Register Name Mode Default Description 31:8 Unused PAx 200KΩ pull-down resister control. Valid when PAx is used as input GPIOAPD 0: disable 1: enable...
Page 12
3GPIO Management Name Mode Default Description 0011: map to TX pin by UT1TXMAP select 1111: Clear these bits Others is reserved UART1 TX mapping 0000: no affect 0001: map to G1 27:24 UT1TXMAP 0010: map to G2 1111: Clear these bits Others is reserved 23:20 19:16...
3GPIO Management Name Mode Default Description 0001: map to G1 0010: map to G2 0011: map to TX pin by UT2TXMAP select 1111: Clear these bits Others is reserved UART2 TX mapping 0000: no affect 0001: map to G1 UT2TXMAP 0010: map to G2 1111: Clear these bits Others is reserved...
Page 14
3GPIO Management Register 3-17WKUPCON: Wake up control Register Name Mode Default Description 31:17 Unused Wake up interrupt enable WKIE 0: disable 1: enable 15:8 Unused Wake up input 7~0 enable WKEN 0: disable 1: enable Register 3-18WKUPEDG: Wake up edge select Register Name Mode Default...
4Timer 4 Timer 4.1 Features Timer0/1/2, only support 32bit timer function Timer3/4/5, can be configured to Timer-mode, Counter-mode, Capture-mode and PWM-mode 4.2 Timer0/1/2 Special Function Registers Register 4-1TMR0CON/TMR1CON/TMR2CON: Timer0/1/2 Control Register Name Mode Default Description 31:10 Unused Timer overflow pending TPND 0: not overflow 1: overflow...
4Timer 4.3 Timer3/4/5 Special Function Registers Register 4-5TMR3CON/TMR4CON/TMR5CON: Timer3/4/5 Control Register Name Mode Default Description 31:18 Unused Timer capture pending CPND 0: not capture 1: capture Timer overflow pending TPND 0: not overflow 1: overflow 15:12 Unused Timer pwm2 enable bit PWM2EN 0: disable 1: enable...
Page 17
4Timer Name Mode Default Description Timer counter. TMRCNT will increase when timer is enabled. It overflows when TMRCNT = 31:0 TMRCNT TMRPR, TMRCNT will be clear to 0x0000 when overflow, and the interrupt flag will be set ‘1’. Register 4-8TMR3PR/TMR4PR/TMR5PR: Timer3/4/5 period Register Name Mode Default...
5PWM 5 PWM 5.1 Features Four channel PWM for Breathing-lamp 5.2 Special Function Registers Register 5-1 PWMCON: PMW Configure Register Name Mode Default Description 31:5 PWM invert enable PWMIVN 0: duty is high level 1: duty is low level PWM Auto Adjust enable AUTOADJUST 0: disable 1: enable PWM3 enable...
6RTC 6 RTC 6.1 Features Support 32bit Independent power supply real time counter Support alarm interrupt and second interrupt 6.2 Special Function Registers Register 6-1RTCCON: RTC Control Register Name Mode Default Description 31:13 Unused VUSB online state VUSBONLINE 0: not online 1: online RTC WK pin state RTCWKP...
6RTC Name Mode Default Description 1:enable Register 6-2RTCDAT: RTC data Register Name Mode Default Description 31:10 Unused RTC cmd 00: data RTCMD 01: read command 10: write command 11: reserve RTCDAT RTC data Register 6-3RTCCPND: RTC clear pending Register Name Mode Default Description...
Page 22
6RTC Name Mode Default Description WK pin pull up enable bit WKPPUEN 0: disable 1: enable WK pin pull up select bit 00: 80K WKPPUS 01: 90K 10: 100K 11: 400K WK pin pull down 10K enable bit WKPPD 0: disable 1: enable WK pin input enable bit WKPIE...
Page 23
6RTC Name Mode Default Description 0: disable 1: enable BUCK LDO mode select bit LDOM 0: buck mode 1: LDO mode Register 6-11 RTCCON7: RTC control Register 7 Name Mode Default Description Unused WKOPRT WKO protect bit LVD detect enable after power up by wake up LVDDETEN 0: disable 1:enable...
7UART0 7 UART0 7.1 Features UART is a serial port capable of asynchronous transmission. The UART can function in full duplex mode. 7.2 UART0 Special Function Registers Register 7-1UART0CON: UART Control Register Name Mode Default Description 31:10 Unused RX pending RXPND 0: RX one byte not finish 1: RX one byte finish...
8SPI1 8 SPI1 8.1 Features SPI1 can support different mode general 3 wire mode, 1-bit clock in/out, 1-bit data output, 1-bit data input 2 wire mode, 1-bit clock in/out, 1-bit data output or input; 2 data bus mode, 1-bit clock in/out, 2-bit data output or input; 8.2 SPI1 Special Function Registers Register 8-1SPI1CON: SPI1 Control Register Name...
Page 28
8SPI1 Name Mode Default Description 0: transmit 1: receive Data bus width select bit 00:3-wire mode; 1bit data in, 1bit data out BUSMODE 01:2-wire mode; 1bit data in/out 10: 2bit bidirectional data bus 11: reserved Slave mode select bit SPISM 0:master mode 1:slave mode SPI Enable Bit...
8SPI1 Name Mode Default Description 15:0 Unused Register 8-4 SPI1BUF: SPI1 receive/send Data Register Name Mode Default Description 31:8 Unused SPI Data Write this register will load the data to transmitter buffer. SPI1BUF Read this register will read the data from the receiver buffer.. Register 8-5 SPI1DMACNT: SPI1 DMA counter Register Name Mode...
Page 30
8SPI1 Set SPIIE ‘1’ if needed Write data to SPIBUF to kick-start the process Wait for SPIPND to change to ‘1’, or wait for interrupt Read received data from SPIBUF if needed 10. Go to Step 8 to start another process if needed or turn off SPI1by clearing SPIIE and SPIEN SPI Normal multi-bit-Mode Operation Flow: Set data bus width(bus 2) and select the pin map Select RXSEL for Transmit or receive...
9Characteristics 9.6 Current Parameters Table 9-9 Current Parameters Characteristics Unit Conditions IRTC RTC mode current 4.2V input, room temp. Sleep Sleep current 2000 3.3V input, room temp FCC WARNING STATEMENT Changes or modifications not expressly approved by the party responsible for compliance could void the user’s authority to operate the equipment.
Need help?
Do you have a question about the AB53 Series and is the answer not in the manual?
Questions and answers