Pwm Operation - Holtek HT46R003B Manual

Cost-effective a/d 8-bit otp mcu
Table of Contents

Advertisement

HT46R003B
Cost-Effective A/D 8-bit OTP MCU
Power Down Mode and Wake-up .................................................................. 22
Power Down Mode ................................................................................................................ ��
Standby C�rrent Considerations ........................................................................................... ��
Wake-�p ................................................................................................................................ ��
Watchdog Timer ............................................................................................. 24
Watchdog Timer Clock So�rce .............................................................................................. ��
Watchdog Timer Control Registers ....................................................................................... ��
Watchdog Timer Operation ................................................................................................... �5
Reset and Initialization .................................................................................. 26
Reset F�nctions .................................................................................................................... �6
Reset Initial Conditions ......................................................................................................... �8
Input/Output Ports ......................................................................................... 30
Port A Wake-�p ..................................................................................................................... 31
I/O Port Control Registers ..................................................................................................... 31
Pin-shared F�nctions ............................................................................................................ 3�
I/O Pin Str�ct�res .................................................................................................................. 33
Programming Considerations ................................................................................................ 3�
Timer/Event Counter ..................................................................................... 35
Configuring the Timer/Event Counter Input Clock Source .................................................... 35
Timer Register - TMR ........................................................................................................... 36
Timer Control Register - TMRC ............................................................................................ 36
Timer Mode ........................................................................................................................... 37
Event Co�nter Mode ............................................................................................................. 38
P�lse Width Capt�re Mode ................................................................................................... 38
Prescaler ............................................................................................................................... 3�
PFD F�nction ........................................................................................................................ �0
I/O Interfacing ........................................................................................................................ �0
Programming Considerations ................................................................................................ �0
Timer Program Example ....................................................................................................... �1
Time Base ............................................................................................................................. ��
Pulse Width Modulator .................................................................................. 42
PWM Operation ..................................................................................................................... ��
PWM O�tp�t Control ............................................................................................................. ��
Analog to Digital Converter ......................................................................... 45
A/D Overview ........................................................................................................................ �5
A/D Converter Data Registers - ADRL� ADRH ..................................................................... �5
A/D Converter Control Registers - ADCR� ACSR� ADPCR .................................................. �6
A/D Operation ....................................................................................................................... �8
A/D Inp�t Pins ....................................................................................................................... ��
S�mmary of A/D Conversion Steps ....................................................................................... ��
Rev. 1.00
3
��ne 1�� �01�

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT46R003B and is the answer not in the manual?

Questions and answers

Table of Contents