Details, datasheet, quote on part number: AN91009
PartAN91009
Category
Description
CompanyN.A.
DatasheetDownload AN91009 datasheet
  

 

Features, Applications

1. INTRODUCTION A set of software functions is given to access the E2PROM on the 8xC851 microcontrollers. These functions can be called from application programs written in assembly, or C. The functions are found in the E2PROM.OBJ file that can be linked to the application program. The driver is written and tested with the following software tools from BSO-Tasking: Assembler: (OM4144) C Comp.: V2.0 (OM4136) Debugger: V1.4c (OM4129) Resources used by driver: Exclusive use of 1 register bank (default RB1) Accumulator PSW 1 static bit addressable RAM byte 2. FUNCTION DESCRIPTIONS The functions that use write and/or erase actions are interrupt driven except for E2PROM_wr_byte_pol. The application can check the status of these actions by testing the flag E2PROM_BUSY. This flag is available via the function E2PROM_status. In the 8xC851, the E2PROM interrupt is combined with the UART interrupt. To enable the E2PROM interrupt, EA (in the IE-register) must be set (should be done in application program), the combined UART/E2PROM enable bit must be set (ES in the IE-register, done with function E2PROM_int_en) and the E2PROM interrupt enable bit (EEINT in ECNTRL register) must be set. The E2PROM interrupt flag is automatically set by functions that use erase/write actions. This means that the UART interrupt enable cannot be disabled while the E2PROM interrupt is completely enabled. The E2PROM can be disabled separately with the E2PROM_int_dis function. The priority level for UART and E2PROM interrupt are the same and are defined with the E2PROM_int_en function. The E2PROM driver has a link to a UART interrupt handler. When a UART interrupt occurs, the status of the controller is pushed on the stack and then interrupt flags are tested to determine the source of the interrupt. When the source of the interrupt is the UART, then subroutine _UART_HDL is called. the implementation of the UART interrupt handler is done by the user. On the disk a file UART.SRC is available that contains this subroutine. This routine will only clear the trx-interrupt flag (TI) and rcv-interrupt flag (RI).

2.1 E2PROM_init Function description: This function must be called before any of the other functions is called. The timing register for writing/erasing the E2PROM is initialized and the register bank that the E2PROM functions can use is defined. The default registerbank is RB1; the ETIM register which determines the write/erase timing is default initialized with 0x7B (XTAL 12MHz). If other values are required, the parameters REGISTERBANK and XTAL must be changed in the equate list of the source file (E2PROM.ASM). The E2PROM/UART interrupt is enabled and set to priority level `0'. Calling Sequence: E2PROM_init(); Function prototype: void E2PROM_init (void) Parameters: None

2.2 E2PROM_int_en Function description: This function will enable the E2PROM/UART interrupt. The global enable bit EA is not effected and must be controlled by the application program. The priority level of the E2PROM/UART is controlled by the parameter `Pr_Level'. Calling Sequence: E2PROM_int_en (Pr_Level); Function prototype: void E2PROM_int_en (data char Pr_Level) Parameters: Pr_Level: This parameter determines the priority level on which the E2PROM/UART interrupts are handled. Values greater than 0x01 will be interpreted as 0x01.

2.3 E2PROM_int_dis Function description: This function will disable the E2PROM/UART interrupt. Calling Sequence: E2PROM_Int_Dis; Function prototype: void E2PROM_Int_Dis (void) Parameters: None


 

Some Part number from the same manufacture
AN923
AN924
AN925
AN926
AN928
AN93008
AN93013
AN93014
AN93016
AN93017
AN931
AN932
AN933
AN937
AN938
AN94002
AN94078
AN942
AN943
AN944
AN945
Same catergory

HD74HC244 : Bus Oriented Circuits. Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp. The semiconductor operations of Mitsubishi Electric and Hitachi were transferred to Renesas Technology Corporation on April 1st 2003. These operations include microcomputer, logic, analog and discrete devices, and memory chips.

AM442 : Strom-wandler-ic. Versorgungsspannung: 635V Großer Arbeitstemperaturbereich: ­40°C+85°C Einstellbare Referenzspannungsquelle: 4,5 bis 10V Instrumentenverstärker mit großem Eingangsspannungsbereich Zusätzliche Spannungs- und Stromquelle Einstellbare Verstärkung und Offset Zweidraht-Betrieb: 420mA Dreidraht-Betrieb: 0/420mA Einstellbarer Ausgangsstrombereich Verpolschutz.

PP3DPS : Surface Mount Crystals 3.5 x 6.0 x 1.2 mm. Miniature low profile package & 4 Pad) RoHS Compliant Wide frequency range PCMCIA - high density PCB assemblies PR (2 Pad) PP (4 Pad) MtronPTI reserves the right to make changes to the product(s) and service(s) described herein without notice. No liability is assumed as a result of their use or application. Please see www.mtronpti.com for our complete.

CY3674 : Ez-usb FX1 USB Microcontroller Full Speed USB Peripheral Controller. EZ-USB FX1TM USB Microcontroller Full Speed USB Peripheral Controller Integrated, Industry Standard 8051 with Enhanced : Single Chip Integrated USB Transceiver, SIE, and Enhanced 8051 Microprocessor Fit, Form, and Function Upgradable to the FX2LP (CY7C68013A) to 48 MHz clock rate Four clocks for each instruction cycle Two USARTS Three counters or timers.

T064AB-LC : Low Capacitance Bi-directional Surface Mount Thyristor Surge Protective Device.

UWJ1C151MCL : Aluminum Electrolytic Capacitors. Recomended reflow condition : 260°C peak 5 sec. 230°C over 60 sec. 2 times Chip type with 5.5mm height. Designed for surface mounting on high density PC board. Applicable to automatic mounting machine using carrier tape. Load life of 2000 hours at 85°C Adapted to the RoHS directive (2002/95/EC). s Item Category Temperature Range Rated Voltage Range.

LBN03501 : SAW Filter Electrical Characteristic. Center Frequency Insertion Loss 3 dB Bandwidth 40 dB Bandwidth Passband variation Absolute Delay Ultimate Rejection Substrate Material Ambient Temperature Package Size °C DIP2212 .

62GB-12E12-10SN : CIRCULAR CONN, RCPT, SIZE 12, 10POS, BOX. s: Connector Type: Circular Military ; Series: - ; Gender: Receptacle ; Connector Body Material: Aluminium ; Connector Shell Size: 12-10 ; Contact Gender: Socket ; Insert Arrangement: 12-10 ; Connector Mounting: Box ; No. of Contacts: 10 ; Contact Termination: Solder ; Contact Material: Copper Alloy ; Contact.

SI4340CDY-T1-GE3 : MOSFET, NN CH, SCH DIODE, 20V, SO14. s: Transistor Polarity: N Channel ; Continuous Drain Current Id, N Channel: - ; Continuous Drain Current Id, P Channel: - ; Drain Source Voltage Vds, N Channel: - ; Drain Source Voltage Vds, P Channel: - ; On Resistance Rds(on), N Channel: - ; On Resistance Rds(on), P Channel: - ; Rds(on) Test Voltage Vgs: 10V ; Threshold.

2133-3401-04 : DIGITAL PANEL METER. s: No. of Digits / Alpha: 3-1/2 ; Meter Function: DC Millivolts ; Meter Range: 0mV to 200mV ; Digit Height: 12.7mm ; Panel Cutout Height: - ; Panel Cutout Width: - ; Supply Voltage Range: 97.75VAC to 126.5VAC ; Power Consumption: 2VA ; Operating Temperature Range: -20°C to +60°C.

OSTYK60303130 : Through Hole Terminal Block - Barrier Block Connectors, Interconnect Through Hole; CONN BARRIER STRIP 3CIRC 10MM. s: Color: Black ; Mounting Type: Through Hole ; Number of Rows: 1 ; Pitch: 0.394" (10.00mm) ; Terminal Block Type: Barrier Block ; Number of Circuits: 3 ; : Cover, Flange ; Current: 20A ; Voltage: 300V ; Wire Gauge: 12-22 AWG ; Top Termination:.

3404.2326.11 : Fuse Circuit Protection 2A 125VAC, 125VDC Slow Blow, Time Lag; FUSE 2A 125V SMD SLOW. s: Current: 2A ; Voltage - Rated: 125VAC, 125VDC ; Package / Case: Non-Standard SMD ; Fuse Type: Slow Blow, Time Lag ; Mounting Type: Surface Mount ; Lead Free Status: Lead Free ; RoHS Status: RoHS Compliant.

3-644570-9 : Tin Free Hanging (In-Line) Rectangular - Free Hanging, Panel Mount Connectors, Interconnect Receptacle; CONN RCPT 9POS 18AWG MTA-156. s: Color: Black ; Connector Type: Receptacle ; Contact Finish: Tin ; : Feed Through, Polarizing Key ; Mounting Type: Free Hanging (In-Line) ; Number of Rows: 1 ; Pitch: 0.156" (3.96mm) ; Row Spacing: - ; Packaging: Bulk.

LM258DRG3 : Linear - Amplifier - Instrumentation, Op Amps, Buffer Amp Integrated Circuit (ics) General Purpose Cut Tape (CT) 1mA 3 V ~ 32 V, ±1.5 V ~ 16 V; IC OPAMP GP 700KHZ DUAL 8SOIC. s: Packaging: Cut Tape (CT) ; Amplifier Type: General Purpose ; Number of Circuits: 2 ; Package / Case: 8-SOIC (0.154", 3.90mm Width) ; Slew Rate: 0.3 V/µs ; Gain Bandwidth Product:.

AWP20-7540-T-R : Tin Free Hanging (In-Line) Rectangular - Free Hanging, Panel Mount Connectors, Interconnect Socket; CONN SOCKET IDC 20POS W/KEY TIN. s: Color: Gray ; Connector Type: Socket ; Contact Finish: Tin ; : Feed Through, Polarizing Key ; Mounting Type: Free Hanging (In-Line) ; Number of Rows: 2 ; Pitch: 0.100" (2.54mm) ; Row Spacing: 0.100" (2.54mm) ; Packaging:.

RHC2512FT825R : 825 Ohm 2W Chip Resistor - Surface Mount; RES 825 OHM 2W 1% 2512 SMD. s: Resistance (Ohms): 825 ; Power (Watts): 2W ; Tolerance: ±1% ; Packaging: Tape & Reel (TR) ; Composition: Thick Film ; Temperature Coefficient: ±100ppm/°C ; Lead Free Status: Lead Free ; RoHS Status: RoHS Compliant.

RG1608V-202-P-T1 : 2K Ohm 0.1W, 1/10W Chip Resistor - Surface Mount; RES 2K OHM 1/10W .02% 0603. s: Resistance (Ohms): 2K ; Power (Watts): 0.1W, 1/10W ; Tolerance: ±0.02% ; Packaging: Tape & Reel (TR) ; Composition: Thin Film ; Temperature Coefficient: ±5ppm/°C ; Lead Free Status: Lead Free ; RoHS Status: RoHS Compliant.

 
0-C     D-L     M-R     S-Z