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

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
8.5.5 PPG output
/******************************************************************************/
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/******************************************************************************/
#pragma sfr
#pragma EI
#pragma DI
#define intervalTM0 130
#define active_time 65
#pragma interrupt INTTM00 ppgint rb2
void main(void)
{
}
/* Timer 0 interrupt function */
void ppgint()
{
}
unsigned int ppgdata[2];
PCC = 0x0;
ppgdata[0] = 0;
ppgdata[1] = 0;
P7 = 0b11111110;
PM7.0 = 0;
TMMK00 = 0;
PRM0 = 0b00000010;
CRC0 = 0b00000000;
CR00 = intervalTM0;
CR01 = active_time;
TOC0 = 0b00010111;
TMC0 = 0b00001100;
EI();
while(1);
unsigned int work;
work = ppgdata[0];
if (work != 0)
{
}
work = ppgdata[1];
if (work != 0)
{
}
Cycle set to 130 as intervalTM0
Active period set to 65 as active_time
Array ppgdata prepared as data area for rewriting
[0]: Active period (0000: no change, 0xffff: stop)
[1]: Cycle (0000: no change)
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.
Timer 0 PPG mode setting example
CR01 = work;
ppgdata[0] = 0;
if (work == 0xffff)
{
}
CR00 = work;
ppgdata[1]=0;
TMC0 = 0b00000000;
CHAPTER 8 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U14046EJ5V0UD
/* Cycle data to be set to CR00 */
/* Initial value data of CR01 */
/* Data area to be set to timer 0 */
/* Set port */
/* Clear P70 */
/* Set P70 to output */
/* Set interrupt */
/* Set timer 0 */
/* Count clock is fx/2^6 */
/* Clear & start on match between TM0 and CR00 */
/* Set high-speed operation mode */
/* Cancel INTTM00 interrupt mask */
/* Set CR00 and CR01 to compare register */
/* Set initial value of cycle */
/* Set initial value of active period */
/* Inverted on match between CR00 and CR01,
initial value L */
/* Stop timer */
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
213

Related parts for UPD78F0034BGC-8BS-A