Electronic Components Datasheet Search
  English  ▼

X  

HT56RB27 Datasheet(PDF) 38 Page - Holtek Semiconductor Inc

Part # HT56RB27
Description  TinyPowerTM A/D Type Smart Card OTP MCU with DAC, ISO 7816 and USB Interfaces
PDF  153 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT56RB27 Datasheet(HTML) 38 Page - Holtek Semiconductor Inc

Back Button HT56RB27 Datasheet HTML 34Page - Holtek Semiconductor Inc HT56RB27 Datasheet HTML 35Page - Holtek Semiconductor Inc HT56RB27 Datasheet HTML 36Page - Holtek Semiconductor Inc HT56RB27 Datasheet HTML 37Page - Holtek Semiconductor Inc HT56RB27 Datasheet HTML 38Page - Holtek Semiconductor Inc HT56RB27 Datasheet HTML 39Page - Holtek Semiconductor Inc HT56RB27 Datasheet HTML 40Page - Holtek Semiconductor Inc HT56RB27 Datasheet HTML 41Page - Holtek Semiconductor Inc HT56RB27 Datasheet HTML 42Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 38 / 153 page
background image
Programming Considerations
Within the user program, one of the first things to consider is port initialisation. After a reset, all of the
I/O data and port control registers will be set high. This means that all I/O pins will default to an input
state, the level of which depends on the other connected circuitry and whether pull-high selections
have been chosen. If the port control registers, PAC, PBC, etc., are then programmed to setup some
pins as outputs, these output pins will have an initial high output value unless the associated port data
registers, PA, PB, etc., are first programmed. Selecting which pins are inputs and which are outputs can
be achieved byte-wide by loading the correct values into the appropriate port control register or by
programming individual bits in the port control register using the
²SET [m].i² and ²CLR [m].i²
instructions. Note that when using these bit control instructions, a read-modify-write operation takes
place. The microcontroller must first read in the data on the entire port, modify it to the required new
bit values and then rewrite this data back to the output ports.
Port A has the additional capability of providing wake-up functions. When the device is in the Power
Down Mode, various methods are available to wake the device up. One of these is a high to low
transition of any of the Port A pins. Single or multiple pins on Port A can be setup to have this function.
Timer/Event Counters
The provision of timers form an important part of any microcontroller, giving the designer a means of
carrying out time related functions. The device contains several 8-bit and 16-bit count-up timers. As
each timer has three different operating modes, they can be configured to operate as a general timer, an
external event counter or as a pulse width measurement device. The provision of a prescaler to the
clock circuitry of the 8-bit Timer/Event Counter also gives added range to this timer.
There are two types of registers related to the Timer/Event Counters. The first are the registers that
contain the actual value of the Timer/Event Counter and into which an initial value can be preloaded.
Reading from these registers retrieves the contents of the Timer/Event Counter. The second type of
associated register is the Timer Control Register which defines the timer options and determines how
the Timer/Event Counter is to be used. The Timer/Event Counters can have their clock configured to
come from an internal clock source. In addition, their clock source can also be configured to come
from an external timer pin.
Configuring the Timer/Event Counter Input Clock Source
The internal timer
¢s clock can originate from various sources. The system clock source is used when
the Timer/Event Counter is in the timer mode or in the pulse width measurement mode. For the 8-bit
Timer/Event Counter this internal clock source is fSYS which is also divided by a prescaler, the division
ratio of which is conditioned by the Timer Control Register, TMRnC, bits TnPSC0~ TnPSC2. For the
16-bit Timer/Event Counter this internal clock source can be chosen from a combination of internal
clocks using a configuration option and the TnS bit in the TMRnC register.
An external clock source is used when the timer is in the event counting mode, the clock source being
provided on an external timer pin TMR0, TMR1, TMR2 or TMR3 depending upon which timer is
used. Depending upon the condition of the TnE bit, each high to low, or low to high transition on the
external timer pin will increment the counter by one.
Rev. 1.20
38
April 26, 2013
HT56RB27
TinyPowerTM A/D Type Smart Card OTP MCU
with DAC, ISO 7816 and USB Interfaces
T 1
T 2
T 3
T 4
T 1
T 2
T 3
T 4
W r i t e t o P o r t
R e a d f r o m P o r t
S y s t e m C l o c k
P o r t D a t a
Read/Write Timing



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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