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

X  

PIC18F4550ESOSQTP Datasheet(PDF) 192 Page - Microchip Technology

Part # PIC18F4550ESOSQTP
Description  28/40/44-Pin, High-Performance, Enhanced Flash, USB Microcontrollers with nanoWatt Technology
PDF  430 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F4550ESOSQTP Datasheet(HTML) 192 Page - Microchip Technology

Back Button PIC18F4550ESOSQTP Datasheet HTML 188Page - Microchip Technology PIC18F4550ESOSQTP Datasheet HTML 189Page - Microchip Technology PIC18F4550ESOSQTP Datasheet HTML 190Page - Microchip Technology PIC18F4550ESOSQTP Datasheet HTML 191Page - Microchip Technology PIC18F4550ESOSQTP Datasheet HTML 192Page - Microchip Technology PIC18F4550ESOSQTP Datasheet HTML 193Page - Microchip Technology PIC18F4550ESOSQTP Datasheet HTML 194Page - Microchip Technology PIC18F4550ESOSQTP Datasheet HTML 195Page - Microchip Technology PIC18F4550ESOSQTP Datasheet HTML 196Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 192 / 430 page
background image
PIC18F2455/2550/4455/4550
DS39632D-page 190
Preliminary
© 2007 Microchip Technology Inc.
18.2
Setup for USB Control
When the SPP is configured for USB operation, data
can be clocked directly to and from the USB peripheral
without intervention of the microcontroller; thus, no
process time is required. Data is clocked into or out
from the SPP with endpoint (address) information first,
followed by one or more bytes of data, as shown in
Figure 18-5. This is ideal for applications that require
isochronous, large volume data movement.
The following steps are required to set up the SPP for
USB control:
1.
Configure the SPP as desired, including wait
states and clocks.
2.
Set the SPPOWN bit for USB ownership.
3.
Set the buffer descriptor starting address
(BDnADRL:BDnADRH) to FFFFh.
4.
Set the KEN bit (BDnSTAT<5>) so the buffer
descriptor is kept indefinitely by the SIE.
5.
Set the INCDIS bit (BDnSTAT<4>) to disable
automatic buffer address increment.
6.
Set the SPPEN bit to enable the module.
18.3
Setup for Microcontroller Control
The SPP can also act as a parallel port for the
microcontroller. In this mode, the SPPEPS register
(Register 18-3) provides status and address write
control. Data is written to and read from the SPPDATA
register.
When
the
SPP
is
owned
by
the
microcontroller, the SPP clock is driven by the
instruction clock (FOSC/4).
The following steps are required to set up the SPP for
microcontroller operation:
1.
Configure the SPP as desired, including wait
states and clocks.
2.
Clear the SPPOWN bit.
3.
Set SPPEN to enable the module.
18.3.1
SPP INTERRUPTS
When owned by the microcontroller core, control can
generate an interrupt to notify the application when
each read and write operation is completed. The
interrupt flag bit is SPPIF (PIR1<7>) and is enabled by
the SPPIE bit (PIE1<7>). Like all other microcontroller
level interrupts, it can be set to a low or high priority.
This is done with the SPPIP bit (IPR1<7>).
18.3.2
WRITING TO THE SPP
Once configured, writing to the SPP is performed by
writing to the SPPEPS and SPPDATA registers. If the
SPP is configured to clock out endpoint address infor-
mation with the data, writing to the SPPEPS register
initiates the address write cycle. Otherwise, the write is
started by writing the data to the SPPDATA register.
The SPPBUSY bit indicates the status of the address
and the data write cycles.
The following is an example write sequence:
1.
Write the 4-bit address to the SPPEPS register.
The
SPP
automatically
starts
writing
the
address. If address write is not used, then skip
to step 3.
2.
Monitor the SPPBUSY bit to determine when the
address has been sent. The duration depends
on the wait states.
3.
Write the data to the SPPDATA register. The
SPP automatically starts writing the data.
4.
Monitor the SPPBUSY bit to determine when the
data has been sent. The duration depends on
the wait states.
5.
Go back to steps 1 or 3 to write a new address
or data.
FIGURE 18-5:
TRANSFER OF DATA BETWEEN USB SIE AND SPP
Note:
If a USB endpoint is configured to use the
SPP, the data transfer type of that
endpoint must be isochronous only.
Note:
The SPPBUSY bit should be polled to
make certain that successive writes to the
SPPEPS or SPPDATA registers do not
overrun the wait time due to the wait state
setting.
Byte 0
Byte 1
Byte 2
Byte 3
Byte n
Endpoint
Address
Write USB endpoint number to SPP
Write outbound USB data to SPP or
read inbound USB data from SPP



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