Thank you Joep very much for the info.  
Ok, here's what I am trying to do.  I am working on building a robot 
controlled by a laptop and I want to be able to make the laptop communicate 
with the PIC microcontroller which will in turn run the motors and get 
feedback from the sensors.  So I am trying to understand how to get the 
laptop and the PIC to talk to each other via serial.

Right now I'm not able to spend any more money on my hobby so I have to 
make do with the equipment I already have.  So that's why I am trying to 
figure out how to use the serial pass-through feature of the Wisp628.

So if I am understanding correctly from what you said, I should be using 
the serial_software.jal library, is that correct?  

I found the sample file called 16f877a_serial_software.jal.  Can I modify 
that sample file and make it work for my 16f877 chip and use the serial 
pass-through feature of the Wisp628?  If so, how should I modify it?

One more question:  I'm a little bit confused because right now the 
pass-through feature is using pins 3 and 4 on the programmer.  But in the 
wiring diagram for the programmer which is shown on Wouter's website it 
shows that pins 7 and 8 on the programmer can be used for "asynch". 
(http://www.voti.nl/wisp628/index.html).  So can either set of wires on the 
programmer be using for serial pass-through?

Thanks very much for your help!  I'm excited to learn how this all works. 
:-)
Shawn


On Sunday, June 2, 2013 7:20:18 PM UTC-6, Joep wrote:
>
> Hi Shawn,
>
> Welcome!
>
> I'm not sure on what particular point your serial comms fail, so let give 
> you some general directions.
> First of all, note the difference between serial hardware and serial 
> software.
> Most jallib examples are based on serial hardware (using the uart) and, as 
> a result, are fixed to the uart pins (25/26). To use this with the wisp628, 
> you need to connect pins 25/26 to pins 8/7 of the programmer. Use the 
> appropriate passtrough command (auxillary pins and inverted iirc)
> Examples of wouter and also bert use programming pins for serial comms. 
> This saves two wires and two pins but require serial software (which is not 
> as efficient and versatail as serial hw) and set this up for those specfic 
> pins; you can choose normal and inverted signals in serial sw as long as 
> you use the matching passtrough command.
> Note that there is also a speed limit on the passtrough mode of the 
> wisp628.115k2 - common for serail hw - is not supported, so start out at 
> 1200 baud or so. You may increase it a bit once you got it working.
>
> Having said this, my advice would be to use the wisp628 for programming 
> and get a '5v arduino ftdi cable' (or breakout box) for the serial comms 
> and use serial hw. Supports much higer speed, no command need to entered 
> after ach programming cyle - you can leave you terminal prog open - and you 
> can  be get one for less than 10 $ on ebay.
>
> Joep
>
>
> Op zondag 2 juni 2013 schreef ([email protected] <javascript:>) het 
> volgende:
>
>> Hi, I'm new here.  I'm also kind of a beginner with PIC programming.  A 
>> number of years ago I bought the PIC16F877 and the Wisp628 programmer 
>> designed by Wouter van Ooijen.  I was using the JAL language, but didn't 
>> get very far in my learning before I had to put it all on the back burner 
>> for a number of years.  So now I want to get back into it again.  But 
>> things have changed and I kind of need a little bit of help.
>>
>> Of course I did the "Blink an LED" project, and everything is in working 
>> order.  Now I want to move to serial communications between the PIC and the 
>> PC.  But I would like to use the serial passthrough feature of the Wisp628, 
>> (which I think uses pins B6 and B7 on the PIC).  I had this mostly working 
>> a number of years ago using the JAL example on Wouter's website - see 
>> http://www.voti.nl/blink/index.html, at the bottom of the page.  But 
>> that example uses the "vintage" version of JAL, and I want to learn how to 
>> use the new version.
>> So I was trying to follow the example project on 
>> http://www.justanotherlanguage.org/content/jallib/tutorials/tutorial_serial_communication,
>>  
>> but it is not designed to use the serial passthrough feature of the Wisp628 
>> programmer.  It uses pins RX and TX instead.
>>
>> So, can somebody help me translate the "vintage" JAL code on this page 
>> (last example at the bottom), http://www.voti.nl/blink/index.html, to 
>> use the modern JAL libraries?
>>
>> Thanks!
>> Shawn
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "jallib" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/jallib?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to