Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC18C242-E/SP Datasheet(PDF) 46 Page - Microchip Technology

Part # PIC18C242-E/SP
Description  High-Performance Microcontrollers with 10-Bit A/D
PDF  296 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18C242-E/SP Datasheet(HTML) 46 Page - Microchip Technology

Back Button PIC18C242-E/SP Datasheet HTML 42Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 43Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 44Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 45Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 46Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 47Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 48Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 49Page - Microchip Technology PIC18C242-E/SP Datasheet HTML 50Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 46 / 296 page
background image
DS39026B-page 46
Preliminary
© 7/99 Microchip Technology Inc.
PIC18CXX2
4.10
Access Bank
The Access Bank is an architectural enhancement
which is very useful for C compiler code optimization.
The techniques used by the C compiler may also be
useful for programs written in assembly.
This data memory region can be used for:
• Intermediate computational values
• Local variables of subroutines
• Faster context saving/switching of variables
• Common variables
• Faster evaluation/control of SFRs (no banking)
The Access Bank is comprised of the upper 128 bytes
in Bank 15 (SFRs) and the lower 128 bytes in Bank 0.
These two sections will be referred to as Access RAM
High and Access RAM Low, respectively. Figure 4-6
and Figure 4-7 indicate the Access RAM areas.
A bit in the instruction word specifies if the operation is
to occur in the bank specified by the BSR register or in
the Access Bank. This bit is denoted by the ’a’ bit (for
access bit).
When forced in the Access Bank (a = ’0’), the last
address in Access RAM Low is followed by the first
address in Access RAM High. Access RAM High maps
the Special Function registers so that these registers
can be accessed without any software overhead. This
is useful for testing status flags and modifying control
bits.
IPR2
—
—
—
—
BCLIP
LVDIP
TMR3IP
CCP2IP
---- 1111
---- 1111
PIR2
—
—
—
—
BCLIF
LVDIF
TMR3IF
CCP2IF
---- 0000
---- 0000
PIE2
—
—
—
—
BCLIE
LVDIE
TMR3IE
CCP2IE
---- 0000
---- 0000
IPR1
PSPIP
ADIP
RCIP
TXIP
SSPIP
CCP1IP
TMR2IP
TMR1IP
1111 1111
1111 1111
PIR1
PSPIF
ADIF
RCIF
TXIF
SSPIF
CCP1IF
TMR2IF
TMR1IF
0000 0000
0000 0000
PIE1
PSPIE
ADIE
RCIE
TXIE
SSPIE
CCP1IE
TMR2IE
TMR1IE
0000 0000
0000 0000
TRISE
IBF
OBF
IBOV
PSP-
MODE
—
Data Direction bits for PORTE
0000 -111
0000 -111
TRISD
Data Direction Control Register for PORTD
1111 1111
1111 1111
TRISC
Data Direction Control Register for PORTC
1111 1111
1111 1111
TRISB
Data Direction Control Register for PORTB
1111 1111
1111 1111
TRISA
—
TRISA6(1)
Data Direction Control Register for PORTA
-111 1111
-111 1111
LATE
—
—
—
—
—
Read PORTE Data Latch, Write
PORTE Data Latch
---- -xxx
---- -uuu
LATD
Read PORTD Data Latch, Write PORTD Data Latch
xxxx xxxx
uuuu uuuu
LATC
Read PORTC Data Latch, Write PORTC Data Latch
xxxx xxxx
uuuu uuuu
LATB
Read PORTB Data Latch, Write PORTB Data Latch
xxxx xxxx
uuuu uuuu
LATA
—
LATA6(1)
Read PORTA Data Latch, Write PORTA Data Latch(1)
-xxx xxxx
-uuu uuuu
PORTE
Read PORTE pins, Write PORTE Data Latch
---- -000
---- -000
PORTD
Read PORTD pins, Write PORTD Data Latch
xxxx xxxx
uuuu uuuu
PORTC
Read PORTC pins, Write PORTC Data Latch
xxxx xxxx
uuuu uuuu
PORTB
Read PORTB pins, Write PORTB Data Latch
xxxx xxxx
uuuu uuuu
PORTA
—
RA6(1)
Read PORTA pins, Write PORTA Data Latch(1)
-x0x 0000
-u0u 0000
TABLE 4-2:
REGISTER FILE SUMMARY (Cont.’d)
Filename
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR,
BOR
Value on
all other
resets
(note 3)
Legend: x = unknown, u = unchanged, - = unimplemented, q = value depends on condition
Note 1: RA6 and associated bits are configured as port pins in RCIO and ECIO oscillator mode only and read ’0’ in all
other oscillator modes.
2: Bit 21 of the TBLPTRU allows access to the device configuration bits.
3: Other (non-power-up) resets include external reset through MCLR and Watchdog Timer Reset.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com