To make things simple, you'll need to use SHIFTIN/SHIFTOUT in PBP. so it doesn't really matter the PIC I/O you use.
A while back i used a PIC16F628, Bellow is the hardware assignement i used.
Code:
' I/O Definition
' ===============
'
TRISA = %00110000 ' PORTA Output on :
' PORTA<3:0> : LCD data
' PORTA<7:6> : LCD RS & E bit
'
' PORTA Input on :
' PORTA.4 : "ALT PLAY" Button
' PORTA.5 : "PLAY" button
'
TRISB = %11110001 ' PORTB Output on :
' PORTB.1 : ISD4002 SS pin
' PORTB.2 : ISD4002 SCLK pin
' PORTB.3 : ISD4002 MOSI pin
'
' PORTB Input on :
' PORTB.0 : ISD4002 INT pin
' PORTB.4 : ISD4002 MISO pin
' PORTB.5 : ISD4002 RAC pin
' PORTB.6 : "SETUP" button
' PORTB.7 : "RECORD" button
Later to write to the ISD chip, i used
Code:
ss = 0
shiftout MOSI,SCLK,LSBFIRST,[ISDword\16]
ss = 1
to read from
Code:
ss=0
shiftin miso,sclk,lsbpre,[isdpointer\16]
ss=1
HTH
Bookmarks