| поискавой системы для электроныых деталей |
|
HT46R006 датащи(PDF) 20 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R006 датащи(HTML) 20 Page - Holtek Semiconductor Inc |
|
20 / 72 page ![]() HT48R006/HT46R006 Rev. 1.00 20 October 24, 2011 Input/Output Ports and Control Registers Within the area of Special Function Registers, the port PA data I/O register and its associated control register PAC plays a prominent role. This register is mapped to specific address within the Data Memory as shown in the Data Memory table. The data I/O registers, are used to transfer the appropriate output or input data on the port. The control registers specifies which pins of the port are set as inputs and which are set as outputs. To setup a pin as an input, the corresponding bit of the con- trol register must be set high, for an output it must be set low. During program initialisation, it is important to first setup the control registers to specify which pins are out- puts and which are inputs before reading data from or writing data to the I/O ports. One flexible feature of these registers is the ability to directly program single bits us- ing the ²SET [m].i² and ²CLR [m].i² instructions. The ability to change I/O pins from output to input and vice versa by manipulating specific bits of the I/O control reg- isters during normal program operation is a useful fea- ture of these devices. System Control Registers - CTRL0, CTRL1 These registers are used to provide control over various internal functions. Some of these include the PFD con- trol, PWM control, certain system clock options, the LXT Oscillator low power control, external Interrupt edge trig- ger type, Watchdog Timer enable function, Time Base function division ratio, and the LXT oscillator enable control. Wake-up Function Register - PAWK When the microcontroller enters the Sleep Mode, vari- ous methods exist to wake the device up and continue with normal operation. One method is to allow a falling edge on the I/O pins to have a wake-up function. This register is used to select which Port A I/O pins are used to have this wake-up function. Pull-high Registers - PAPU The I/O pins, if configured as inputs, can have internal pull-high resistors connected, which eliminates the need for external pull-high resistors. This register selects which I/O pins are connected to internal pull-high resistors. · CTRL0 Register -- HT46R006 Bit 76543210 Name ¾ PFDCS PWMSEL ¾ PWMC0 PFDC LXTLP CLKMOD R/W ¾ R/W R/W ¾ R/W R/W R/W R/W POR ¾ 00 ¾ 0000 Bit 7 unimplemented, read as ²0² Bit 6 PFDCS: PFD clock source 0: timer0 1: timer1 Bit 5 PWMSEL: PWM type selection 0: 6+2 1: 7+1 Bit 4 unimplemented, read as ²0² Bit 3 PWMC0: I/O or PWM 0: I/O 1: PWM Bit 2 PFDC: I/O or PFD 0: I/O 1: PFD Bit 1 LXTLP: LXT oscillator low power control function 0: LXT Oscillator quick start-up mode 1: LXT Oscillator Low Power Mode Bit 0 CLKMOD: system clock mode selection. 0: High speed - HIRC used as system clock 1: Low speed - LXT used as system clock, HIRC oscillator stopped. These selections are only valid if the oscillator configuration options have selected the HIRC+LXT. Note: If PWM output is selected by PWMC0 bit, fTP comes always from fSYS. (fTP is the clock source for timer0, time base and PWM) |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |