Announcement

Collapse
No announcement yet.

Basic instructions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • short_range
    replied


    Yes thanks, the link was very helpful to me.


    Now I'm doing the porting to the mikroBASIC.
    I'm trying to create a little routine "reset":

    reset:
    portc.3 = 0
    delay_ms (50)
    portc.3 = 1
    return

    This code is inserted immediately after the variable declaration and initialization of the ports of the PIC:
    (PORTC = 0)
    (TrisC =% 00000100)
    (gosub reset)

    the problem is that the SOMO is not reset.
    Do not start anything.
    If I measure the pin of the "reset" with an oscilloscope, I notice that the voltage remains at 0.6 volts (600mV).
    If I remove the wire of the reset, I notice that the voltage drops to 0 volts.

    Do you have any advice?





    Thank you.
    Andy
    Attached files

    Leave a comment:


  • 4dTechSupport
    replied


    Try the following link, there is source code posted by one of the forum members,
    http://4d.websitetoolbox.com/post?id=3826190

    Hope it will help...
    -Bilal

    Leave a comment:


  • short_range
    started a topic Basic instructions

    Basic instructions

    I bought a Somo14 that works perfectly.
    Unfortunately I have a few basics of programming.
    I have a PIC 16F876A.
    I know a little of BASIC code and i don't understand how to transmit the data serially (bit banging).
    Have you the ability to write a few lines of BASIC code? (mikroBASIC if possible), to understand how:
    send a single song.
    send a pause command.
    send a volume setting.
    manage busy.

    Thank you.
Working...
X