UPD78F0034BGC-8BS-A Renesas Electronics America, UPD78F0034BGC-8BS-A Datasheet - Page 211
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
1.UPD78F0034BGK-9ET-A.pdf
(605 pages)
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
Company:
Part Number:
UPD78F0034BGC-8BS-A
Manufacturer:
RENESAS
Quantity:
1 000
- Current page: 211 of 605
- Download datasheet (4Mb)
8.5.2 Pulse width measurement by free-running counter and one capture register
/******************************************************************************/
/*
/*
/*
/*
/*
/*
/*
/*
/******************************************************************************/
#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
/*
/***********************************************************/
}
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 = 0b00000100;
EI();
while(1){
}
unsigned int work;
work = CR01;
data[1] = work - data[2];
data[2] = work;
data[0] = 0xffff;
Pulse width measurement example by free-running and CR01
Measurement results to be up to 16 bits and not checked for errors
data[0]: End flag
data[1]: Measurement results (pulse width)
data[2]: Previous read value
Timer 0 operation sample
while(data[0] == 0);
DI();
length = data[1];
data[0] = 0;
EI();
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 for TI00 */
/* Count clock is fx/2^6
/* Set CR01 to capture register */
/* Start in free-run mode */
/* Dummy loop */
/* Wait for measurement completion */
/* Prohibit interrupt for exclusive operation */
/* Read measurement results */
/* Clear end flag */
/* Exclusive operation completed */
/* Read capture value */
/* Calculate and update interval */
/* Update read value */
/* Set measurement completion flag */
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
209
Related parts for UPD78F0034BGC-8BS-A
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
KIT STARTER FOR M16C/29
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR R8C/2D
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
R0K33062P STARTER KIT
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR R8C/23 E8A
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR R8C/25
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER H8S2456 SHARPE DSPLY
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR R8C38C
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR R8C35C
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR R8CL3AC+LCD APPS
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR RX610
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR R32C/118
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT DEV RSK-R8C/26-29
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR SH7124
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT STARTER FOR H8SX/1622
Manufacturer:
Renesas Electronics America
Datasheet:
Part Number:
Description:
KIT DEV FOR SH7203
Manufacturer:
Renesas Electronics America
Datasheet: