Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: wolwil; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. 1st question...Why does it have to be USB? ...

    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...
  2. Replies
    4
    Views
    3,685

    At a quick glance I believe you have to send the...

    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...
  3. Replies
    4
    Views
    3,685

    You would use SHIFTOUT because it is a serial...

    You would use SHIFTOUT because it is a serial interface not an I2C.
  4. Thanks Bruce that last bit of Code worked like a charm!!!

    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...
  5. Thank You Bruce for the code!!! I will try to...

    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...
  6. HAHA well sure I could use the formula to find...

    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...
  7. I was able to get the HPWM to work but no luck on the ASM

    here is the code for the PWM:


    C1 var byte

    For C1 = 0 to 31
    hpwm 1,127,32767
    next
  8. See I was confused because in the manual it said:...

    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...
  9. Thread: StickOS

    by wolwil
    Replies
    103
    Views
    59,449

    Sounds like a good way to fry some cells, put me...

    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???
  10. Thats alright I have been trying to get it to...

    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...
  11. That would be awesome! Thanks

    That would be awesome! Thanks
  12. so do I just replace this: FOR C3 = 0 TO 4095...

    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
  13. Replies
    9
    Views
    13,746

    My code works but it flickers because my GSCLK is too slow HELP

    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...
  14. Well I have come to the realization that it 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...
  15. Nope the same.

    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...
  16. This to me sounds like it is staying inside that...

    This to me sounds like it is staying inside that loop until the switch is pressed

    EDIT: nevermind I missed the IF Then Statement.
  17. Nope The Same :( The part that is slow is...

    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
  18. I dunno let me try it...

    I dunno let me try it...
  19. Yes but not 15 times 16 times ;) and really its...

    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
  20. How can I speed this code up? SHIFTOUT is slowing it down and I need a faster way.

    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
    ...
  21. Finally got it to work!!!

    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...
  22. Mackrackit your code works :D

    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...
  23. Thanks for the code guys! I will try it out on...

    Thanks for the code guys! I will try it out on sunday when I get back.
  24. Maybe this is where I am getting confused... you...

    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"...
  25. Changed the Pullups to 2.2K and still no change

    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...
Results 1 to 25 of 41
Page 1 of 2 1 2