Hi Kiste,

Do you have problems with your UART pins? I noticed for some PICs like the 
16F19176 that I explicitly needed to assign UART pins to their default 
value to get them working. I did it as follows:

pps_control_lock(FALSE)                
RC6PPS = PPS_TX1       -- TX1 re-assigned to C6  (default)             
RX1PPS = PPS_RC7       -- C7 re-assigned to RX1  (default)                 
   
pps_control_lock(TRUE)                 

Not sure if that will solve your problem. I could not find any information 
on this topic but without the PPS the UART did not work. That may also be 
for other pins.

Kind regards,

Rob


On Sunday, June 9, 2019 at 4:59:56 PM UTC+2, Kiste wrote:
>
> Hi all!
>
> Has anyone used a chip of that family for anything else than blinking an 
> LED? 
>
> I took the risk of starting to try using the UART, but it is (till now) 
> terribly incompatible with jallib... 
> Then I tried simple PWM, but even that did not work. The PPS thing 
>
> INTCON0_GIE     = false
> PPSLOCK         = 0x55
> PPSLOCK         = 0xAA
> asm             BCF PPSLOCK_PPSLOCKED
> INTCON0_GIE     = true
>
>  RA0PPS =0b001001       -- CCP1
>
> INTCON0_GIE     = false
> PPSLOCK         = 0x55
> PPSLOCK         = 0xAA
> asm             BSF PPSLOCK_PPSLOCKED
> INTCON0_GIE     = true
>
> must have done something, for the Pin_A0 does not switch anymore when 
> assigning values. It simply stays low, however. I did not manage the UART 
> or the CCP1 module to make the LED light up... Maybe someone used that chip 
> and has a working bit of code?
>
> Thanks!
>
> Kiste
>
>
>

-- 
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 https://groups.google.com/group/jallib.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/792a1f15-0aec-420c-90b6-5c33e6cecd67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to