UPD78F0034BGC-8BS-A Renesas Electronics America, UPD78F0034BGC-8BS-A Datasheet - Page 210

no-image

UPD78F0034BGC-8BS-A

Manufacturer Part Number
UPD78F0034BGC-8BS-A
Description
MCU 8-Bit 78K0 CISC 32KB Flash 2.5V/3.3V/5V 64-Pin LQFP
Manufacturer
Renesas Electronics America
Datasheet

Specifications of UPD78F0034BGC-8BS-A

Package
64LQFP
Family Name
78K0
Maximum Speed
12 MHz
Ram Size
1 KB
Program Memory Size
32 KB
Operating Supply Voltage
2.5|3.3|5 V
Data Bus Width
8 Bit
Program Memory Type
Flash
Number Of Programmable I/os
51
Interface Type
3-Wire/UART
On-chip Adc
8-chx10-bit
Operating Temperature
-40 to 85 °C
Number Of Timers
3

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F0034BGC-8BS-A
Manufacturer:
RENESAS
Quantity:
1 000
Part Number:
UPD78F0034BGC-8BS-A
Quantity:
9
Part Number:
UPD78F0034BGC-8BS-A(MS)
Manufacturer:
NEC
Quantity:
8 000
208
8.5.1 Interval timer
/*******************************************************************************/
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*******************************************************************************/
#pragma sfr
#pragma EI
#pragma DI
#define intervalTM0 130
#pragma interrupt INTTM00 intervalint rb2
void main(void)
{
}
/* Timer 0 interrupt function */
void intervalint()
{
/***************************************************/
/*
/* Define variables required for interrupt here
/*
/***************************************************/
/***********************************************************/
/*
/* Describe processing required for interrupt below
/*
/***********************************************************/
}
unsigned int ppgdata;
PCC = 0x0;
ppgdata = 0;
P7 = 0b11111110;
PM7.0 = 0;
TMMK00 = 0;
PRM0 = 0b00000010;
CRC0 = 0b00000000;
CR00 = intervalTM0;
TOC0 = 0b00000111;
TMC0 = 0b00001100;
EI();
while(1);
unsigned int work;
work = ppgdata;
if (work != 0)
{
Cycle set to 130 as intervalTM0 (at 8.38 MHz for 1 ms)
}
Variable ppgdata prepared as rewrite data area
ppgdata to be checked at every INTTM00, and changed if required.
Therefore, if change is required, set the change data in ppgdata.
When changed, ppgdata cleared to 0000.
: Cycle (if 0000, no change)
Setting example of timer 0 interval timer mode
CR00 = work;
ppgdata = 0;
if (work == 0xffff)
{
}
TMC0 = 0b00000000;
CHAPTER 8 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U14046EJ5V0UD
/* Cycle data to be set to CR00 */
/* Data area to be set to timer 0 */
/* Set high-speed operation mode */
/* Set port */
/* Set the following to output */
/* Clear P70 */
/* Set P70 as output */
/* Set interrupt */
/* Cancel INTTM00 interrupt mask */
/* Set timer 0 */
/* Count clock is fx/2^6 */
/* Set CR00 and CR01 to compare register */
/* Set cycle initial value to CR00 */
/* Invert on match with CR00, initial value L */
/* Clear & start on match between TM0 and CR00 */
/* Loop as dummy here */
/* Stop timer */
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/

Related parts for UPD78F0034BGC-8BS-A