OK, I have been trying to get this to work in my spare time over the past couple weeks and I seem to have hit a roadblock.
Using a 16F628 PIC I am trying to load bit strings into an LMX2306 PLL chip using SHIFTOUT commands. The PLL is never loading. I used almost Identical code in a Parallax Basic Stamp Homework Board and it worked no problems.
PLL is confirmed working by plugging it into National's codeloader software and also my Parallax board. All connections have been checked many many times. Here is the code if anyone would like to see if I am missing something simple.
Please help me, I know there are some big brains around here.
CODE:-------------------------------------
TRISB = %11111111 'set all pins 0-7 to input
TRISA = %00111100 'set pins 0,1,6,7 to output and pins 2,3,4,5 to input
CMCON = %00000111 'turn off on-board comparators
Include "modedefs.bas"
Low PORTA.6
Pause 500
SHIFTOUT PORTA.7,PORTA.0,MSBFIRST,[0\13, 131\8] 'send F reg
High PORTA.6 'LE high
PAUSE 10
Low PORTA.6 'LE low
SHIFTOUT PORTA.7,PORTA.0,MSBFIRST,[0\9, 4000\12] 'send R reg
High PORTA.6 'LE high
PAUSE 10
Low PORTA.6 'LE low
SHIFTOUT PORTA.7,PORTA.0,MSBFIRST,[1\1, 2566\13, 2\5, 1\2] 'send N reg
High PORTA.6 'LE high
PAUSE 10
Low PORTA.6 'LE low
-------------------------------------:END CODE
Bookmarks