Thank you all.
Will give PPS lib a try soon.
Now am facing a new problem.
Maybe someone can help here...
My PIC is reading an analog value and send it thru RS232/USB cable.
Can receive the right data, but need it sent to an already open excel 
spreadsheet.
Cannot make it work. Can send it to notepad anyway, so hardware works ok, 
except excel interaction.
Many examples I can see in internet and tested, have code to "open" new 
workbook and that works. But I want to send the values to and already open 
excel workbook.
Any help would be great.
Thank you once again.

Cheers,
Filipe Santos.

On Thursday, March 24, 2022 at 11:56:07 AM UTC [email protected] wrote:

> Hi Filip,
>
> As Kiste said some PICs require to always set PPS  even for default pin 
> assignments.
>
> An example is given below - for a PIC16F1976 - that shows that works if 
> you use the  JAL PPS library (no need for Great Cow Basic 😉). Of course 
> the names depend on the PIC, you can find them in the device file of your 
> specific PIC.
>
> -- Re-assign the pins. Note: This must always be done to let it work even 
> for 
> -- the default assignment.
> include PPS
> pps_control_lock(FALSE)                
> RC6PPS = PPS_TX1       -- TX1 re-assigned to C6  (default)             
> RX1PPS = PPS_RC7       -- C7 re-assigned to RX1  (default)            
> RD3PPS = PPS_TX2       -- TX2 re-assigned to D3       
> RX2PPS = PPS_RD2       -- D2  re-assigned to RX2              
> pps_control_lock(TRUE)                 
>
>
> Hope this helps.
>
> Kind regards,
>
> Rob
>
>
> ------------------------------
> *Van:* 'Evan Venn' via jallib <[email protected]>
> *Verzonden:* donderdag 24 maart 2022 11:13
> *Aan:* [email protected] <[email protected]>
> *Onderwerp:* Re: [jallib] Help with PIC16F18313 
>  
> Setup the PPS using PPSTOOL?  
>
> PPSTOOL is part of Great Cow BASIC but the tool can be used for any 
> compiler.  Just select the capability and select the port - it gens the PPS 
> output for you. 
>
> On Wed, 23 Mar 2022, 19:09 [email protected], <[email protected]> wrote:
>
> Hi all,
>
> I need help configuring the TX pin of this MCU; F18313.
> Can anyone help about this?
> This pin is not a "stand-alone" function pin. Only RX is available and 
> ready to use.
> Am using an FTDI cable for RS232-5V. Tried to use serial_hardware lib with 
> no luck.
> Is it more suitable to use serial_software lib instead?
> Thank you very much.
>
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/jallib/e05c27d8-a032-4678-9ba8-41f84f5ae08dn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jallib/e05c27d8-a032-4678-9ba8-41f84f5ae08dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/jallib/CADfhC%2BKQHyE1%2B5ub-DZWW72z1K9JiUZga0Y6RGVi9coB0Tgd%2BA%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/jallib/CADfhC%2BKQHyE1%2B5ub-DZWW72z1K9JiUZga0Y6RGVi9coB0Tgd%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/1f53e94e-917a-4aa5-a636-d13252e0baccn%40googlegroups.com.

Reply via email to