| Electronic Components Datasheet Search |
|
HT66F20 Datasheet(PDF) 204 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT66F20 Datasheet(HTML) 204 Page - Holtek Semiconductor Inc |
|
204 / 250 page ![]() HT66F20/HT66F30/HT66F40/HT66F50/HT66F60 HT66FU30/HT66FU40/HT66FU50/HT66FU60 Rev. 1.20 204 June 4, 2010 that as it takes a certain period of time known as the System Start-up Time for oscillator to restart and stabi- lize after a wake-up, any data received during this time on the RX pin will be ignored. For a UART wake-up interrupt to occur, in addition to the bits for the wake-up enable control and Receive inter- rupt enable control being set, the global interrupt enable control and the related interrupt enable control bits must also be set. If these two bits are not set, then only a wake-up event will occur and no interrupt will be ser- viced. Note also that as it takes a period of delay after a wake-up before normal microcontroller resumes, the relevant UART interrupt will not be serviced until this pe- riod of delay time has elapsed. Using the UART Function To use the UART function, several important steps must be implemented to ensure that the UART module oper- ates normally: · The SPI pin-remapping function must be properly configured when the SPI functional pins of the microcontroller are used to control the UART module and for data transmission and data reception. To correctly connect the MCU Master SPI to the UART Module Slave SPI, the SIM pin-remapping settings for PCK and PINTB in the MCU PRM0 register should be the same as the values listed in the following table. ¨ HT66FU30 PRM0 Register - PCK and PINT pin-remap setup Bit 1 0 Name SIMPS0 PCKPS Setting value 1 1 ¨ HT66FU40/HT66FU50 PRM0 Register - PCK and PINT pin-remap setup Bit 2 1 0 Name SIMPS1 SIMPS0 PCKPS Setting value 0 1 1 ¨ HT66FU60 PRM0 Register - PCK and PINT pin-remap setup Bit 2 1 0 Name SIMPS1 SIMPS0 PCKPS Setting value 1 1 1 · The SIM operating mode control bits SIM2~SIM0, in the SIMC0 register have to be configured to enable the SIM to operate in the SPI master mode with a dif- ferent SPI clock frequency. ¨ SIM operating mode control bits SIM2~SIM0 in the SIMC0 Register Bit 7 6 5 Name SIM2 SIM1 SIM0 value 100, 011, 010, 001 or 000 000: SPI master mode; SPI clock is fSYS/4 001: SPI master mode; SPI clock is fSYS/16 010: SPI master mode; SPI clock is fSYS/64 011: SPI master mode; SPI clock is fTBC 100: SPI master mode; SPI clock is TM0 CCRP match frequency/2 101~111: must not be used · The PCK control bit is set to 1 to enable the PCK out- put as the clock source for the UART baud rate gener- ator with various PCK output frequencies determined by the PCKP1 and PCKP0 bits in the SIMC0 Register. ¨ PCK output frequency selection bits PCKP1~PCKP0 in the SIMC0 Register Bit 3 2 Name PCKP1 PCKP0 Value 11, 10, 01 or 00 00: PCK output frequency is fSYS 01: PCK output frequency is fSYS/4 10: PCK output frequency is fSYS/8 11: PCK output frequency is TM0 CCRP match frequency/2 ¨ PCK output enable control bit PCKEN in the SIMC0 Register Bit 4 Name PCKEN Value 1 0: Disable PCK output 1: Enable PCK output After the above setup conditions have been imple- mented, the MCU can enable the SIM interface by set- ting the SIMEN bit high. The MCU can then begin communication with external UART connected devices using its SPI interface. The detailed MCU Master SPI functional description is provided within the Serial Inter- face Module section of the MCU datasheet. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |