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

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.4 Pulse width measurement by restart
/**************************************************************************/
/*
/*
/*
/*
/*
/*
/*
/*
/**************************************************************************/
#pragma sfr
#pragma EI
#pragma DI
#pragma interrupt INTTM01 intervalint rb2
void main(void)
{
}
/* Timer 0 interrupt function */
void intervalint()
{
/******************************************************/
/*
/* Define variables required for interrupt here
/*
/******************************************************/
/********************************************************/
/*
/* Describe processing required for interrupt below
/*
/********************************************************/
}
212
unsigned int data[3];
unsigned int length;
PCC = 0x0;
data[0] = 0;
data[1] = 0;
data[2] = 0;
PM7.0 = 1;
TMMK01 = 0;
PRM0 = 0b00110010;
CRC0 = 0b00000100;
TMC0 = 0b00001000;
EI();
while(1){
}
data[2] = data[1];
data[1] = CR01;
data[0] = 0xffff;
Pulse width measurement example by restart
Measurement results up to 16 bits, not to be checked for errors
data[0]: End flag
data[1]: Measurement results (pulse width)
data[2]: Previous read value
Timer 0 operation sample
if(data[0] != 0)
{
}
TMMK01 = 1;
length = data[1]+data[2];
data[0] = 0;
TMMK01 = 0;
CHAPTER 8 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U14046EJ5V0UD
/* Data area */
/* Set high-speed operation mode */
/* Set port */
/* Set P70 as input */
/* Set interrupt */
/* Cancel INTTM01 interrupt mask */
/* Set timer 0 */
/* Both rising and falling edges
/* Count clock is fx/2^6
/* Set CR01 to capture register
/* Clear & start at TI00 valid edge */
/* Dummy loop */
/* Wait for TI00 measurement completion */
/* Update old data */
/* Update read value */
/* Set measurement completion flag */
/* Prohibit INTTM01 interrupt for
/* Clear end flag */
/* Exclusive operation completed */
exclusive operation */
*/
*/
*/
/* Cycle calculation based on
*/
*/
*/
measurement results */
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/

Related parts for UPD78F0034BGC-8BS-A