1st question...Why does it have to be USB? 2nd...Can it be USB to Serial? If so then you should use a FT232R USB to serial converter IC then goto this link and figure out the rest...
Type: Posts; User: wolwil; Keyword(s):
1st question...Why does it have to be USB? 2nd...Can it be USB to Serial? If so then you should use a FT232R USB to serial converter IC then goto this link and figure out the rest...
At a quick glance I believe you have to send the LSB first according to the Datasheet and you are sending the MSB first. On the bottom of page 6 it shows the LSB being the first bit being clocked...
You would use SHIFTOUT because it is a serial interface not an I2C.
I didn't have to turn off the WDT, I think its off by default but could not find where it tells me in the manual. What will happen if its on? Would I notice it?
I do have one issue but it might...
Thank You Bruce for the code!!! I will try to get it loaded and tested tonight.
Mike are you saying Use a FOR Loop ouside of the ASM like this or is there an ASM FOR Loop I should be using for...
HAHA well sure I could use the formula to find out if it will be fast enough but one needs to know what "log, log2 and bits" are first. I wish these manuals would explain the formulas a little...
here is the code for the PWM:
C1 var byte
For C1 = 0 to 31
hpwm 1,127,32767
next
See I was confused because in the manual it said:
So I was thinking the xx was what I was setting so I figured the LSB was 1 for port B0 and 2 for B3. Like I said I was confused :)
So you are...
Sounds like a good way to fry some cells, put me down for 2 if the price is right - bread board style :cool:
What are we looking at for a ballpark price???
Thats alright I have been trying to get it to work with the HPWM but I just dont quite understand how to get it to work. I put a LED on PORTB.0 and typed the following code but nothing happens to...
That would be awesome! Thanks
so do I just replace this:
FOR C3 = 0 TO 4095
PORTA = %00001000
PORTA = %00000000
NEXT
with this:
FOR C3 = 0 TO 4095
btg LATA.3
How can I get this to stop flickering? It flickers even at 16MHz. With 4 MHz it taks the GSCLK about 250 ms to complete making all the GSDATA that are 0's really stand out causing a flicker.
Is...
Well I have come to the realization that it is not the SHIFTOUT slowing me down but the pulsing of PORTA.3 for 4096 times. I need to get this to be faster.
For better help on this I am going to...
Nope the same.
20 MHz Clock will still be too slow with SHIFTOUT.
I am assuming your code has something to do with accessing per bit in the word sized Dat variable. So if I wanted to access...
This to me sounds like it is staying inside that loop until the switch is pressed
EDIT: nevermind I missed the IF Then Statement.
Nope The Same :(
The part that is slow is going from SUB1 to SUB2 not the looping through them 4096 times
I just tried taking out the GOSUB's and still the same thing
I dunno let me try it...
Yes but not 15 times 16 times ;) and really its not all that bad if I would be able to have it shifting say at 1MHz or more
I think what is slowing this down is the SHIFTOUT.
I am running a 16f88 @ 16MHz and I need to know the fastest way to get through this loop:
LOOP:
FOR DATA = 4095 to 0 step -1
...
First and foremost Thank You, Thank You, Thank You for all of your help guys I really do appreciate it.
Here is the working Code:
' Define serial output pin
SO con 0
' Define...
Well I was able to get your code to work. I noticed when I was reading before using the I2CREAD I was getting all 255's and now I am reading using your code and still getting all 255's where ther is...
Thanks for the code guys! I will try it out on sunday when I get back.
Maybe this is where I am getting confused... you have the control byte being $A0 which is basically saying to write to the 24LC1025 seeing how the read write bit in that is a 0 like this "10100000"...
Everything is the same as before with the new pullup values of 2.2K...back to the drawing board :mad:
I am going to be out of town for the next week so I wont be able to test anything new but I...