ATAM510X-ILQY ATMEL [ATMEL Corporation], ATAM510X-ILQY Datasheet - Page 39

no-image

ATAM510X-ILQY

Manufacturer Part Number
ATAM510X-ILQY
Description
MARC4 4-bit MTP Universal Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
4711B–4BMCU–01/05
Table 3-11.
By using the Timer/Counter I/O Control Register (TCIOR) the program can configure the respec-
tive Port 4 pins as either standard data I/O ports or as external signal ports for the Timer 0 and
Buzzer. The Timer 1 uses a dedicated I/O pin TIM1, whose direction is controlled solely by the
TCCR (see
port data direction register (P4DDR) bit no longer influences the port direction. In the case of
BP40 and BP41, the port direction is then controlled entirely by the timer/counter configuration
registers (TCCR,T0MO), while pins BP42 and BP43 become uni-directional buzzer outputs.
Figure 3-12. Timer/Counter and Buzzer External Interface
3 2 1 0
x x x 1
x x x 0
x x 1 x
x x 0 x
x 1 x x
x 0 x x
1 x x x
0 x x x
Code
TIMER 0
BUZZER
TIMER 1
Figure
Melody,Counter
Select Ext. Clock
Select Ext. Clock
PWM,PDM
Function
BP40 - standard port mode
BP40 - Timer 0 clock input (T0IN0) or Timer 0 output (T0OUT0)
BP41 - standard port mode
BP41 - Timer 0 gate input (T0IN1) or Timer 0 output (T0OUT1)
BP42 - standard port mode
BP42 - Buzzer output (BUZ)
BP43 - standard port mode
BP43 - Buzzer output (NBUZ)
Timer/Counter I/O Control Register (TCIOR)
TCCR
TCCR
T0MO
3-12). It should be noted that if a TCIOR bit is set low, then the corresponding
T0OUT0
T0OUT1
T1OUT
T0IN0
NBUZ
T0IN1
T1IN
BUZ
TCIO0
TCIO1
TCIO3
TCIO2
'0'
'0'
P4DAT0
P4DAT3
P4DDR3
P4DDR0
P4DDR1
P4DAT2
P4DDR2
P4DAT1
to CPU
to CPU
to CPU
to CPU
ATAM510
BP40
BP41
BP42
BP43
TIM1
39

Related parts for ATAM510X-ILQY