PIC16C765-I/P Microchip Technology, PIC16C765-I/P Datasheet - Page 75
![IC MCU OTP 8KX14 USB 40DIP](/photos/6/61/66192/150-40-dip_sml.jpg)
PIC16C765-I/P
Manufacturer Part Number
PIC16C765-I/P
Description
IC MCU OTP 8KX14 USB 40DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16C745-ISP.pdf
(165 pages)
3.PIC16C745-ISP.pdf
(6 pages)
4.PIC16C745-ISP.pdf
(6 pages)
Specifications of PIC16C765-I/P
Core Size
8-Bit
Program Memory Size
14KB (8K x 14)
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Core Processor
PIC
Speed
24MHz
Connectivity
SCI, UART/USART, USB
Number Of I /o
33
Program Memory Type
OTP
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
4.35 V ~ 5.25 V
Data Converters
A/D 8x8b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Controller Family/series
PIC16C
No. Of I/o's
33
Ram Memory Size
256Byte
Cpu Speed
24MHz
No. Of Timers
3
Processor Series
PIC16C
Core
PIC
Data Bus Width
8 bit
Data Ram Size
256 B
Maximum Clock Frequency
24 MHz
Number Of Programmable I/os
33
Number Of Timers
3
Operating Supply Voltage
4.35 V to 5.25 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000, DM163022
Minimum Operating Temperature
- 40 C
On-chip Adc
5 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
ISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMING444-1001 - DEMO BOARD FOR PICMICRO MCU
Eeprom Size
-
Lead Free Status / Rohs Status
Details
Other names
Q975613
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16C765-I/P
Manufacturer:
MICROCHIP
Quantity:
12 000
Company:
Part Number:
PIC16C765-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
10.9.7
This example shows how the USB functions are used.
This example first initializes the USB peripheral, which
allows the host to enumerate the device. The enumer-
ation process occurs in the background, via an Inter-
rupt Service Routine. This function waits until
; ******************************************************************
; Demo program that initializes the USB peripheral, allows the Host
;
; ******************************************************************
main
CheckEP1
; Code host to process out buffer from host
PutBuffer
10.9.8
The code is designed to be used with the linker. There
is no provision for includable files. The code comes
packaged as several different files:
• USB_CH9.ASM - handles all the Chapter 9 com-
• USB_DEFS.INC - #Defines used throughout the
• USB_MAIN.ASM - Sample interrupt service
• HIDCLASS.ASM - Handles the HID class specific
2000 Microchip Technology Inc.
mand processing.
code.
routine.
commands.
call
ConfiguredUSB
bankisel buffer
movlw
movwf
movlw
call
btfss
goto
bankisel buffer
movlw
movwf
movlw
call
btfss
goto
goto
end
to Enumerate, then copies buffers from EP1OUT to EP1IN.
EXAMPLE
ASSEMBLING THE CODE
InitUSB
buffer
FSR
1
GetUSB
STATUS,C
PutBuffer
buffer
FSR
0x81
PutUSB
STATUS,C
PutBuffer
idleloop
; Check Endpoint 1 for an OUT transaction
; Set up everything so we can enumerate
; wait here until we have enumerated.
; point to lower banks
; point FSR to our buffer
; check end point 1
; If data is ready, it will be copied.
; was there any data for us?
; Nope, check again.
; point to lower banks
; save buffer length
; point FSR to our buffer
; put 8 bytes to Endpoint 1
; was it successful?
; No: try again until successful
; Yes: restart loop
Preliminary
enumeration is complete, and then polls EP1 OUT to
see if there is any data available. When a buffer is
available, it is copied to the IN buffer. Presumably
your application would do something more interesting
with the data than this example.
10.9.8.1
There are two #defines at the top of the code that con-
trol assembly options.
10.9.8.2
This define includes code to count the number of
errors that occur, by type of error. This requires extra
code and RAM locations to implement the counters.
10.9.8.3
This is useful for debug. It encodes the upper 6 bits of
USWSTAT (0x197) to indicate which function is exe-
cuting. See the defines in USB_DEFS.INC for the
codes that will be encoded.
Assembly Options
#define ERRORCOUNTERS
#define FUNCTIONIDS
PIC16C745/765
DS41124C-page 75