Trouble with PIC16F18313 RA4 & RA5

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 8-bit PIC MCUs.
Post Reply
Author
Message
Tolic
Posts: 5
Joined: 29 Jan 2018 22:31

Trouble with PIC16F18313 RA4 & RA5

#1 Post by Tolic » 10 Jul 2018 15:20

Hi There!

Got troubles with PIC16F18313 RA4 & RA5

program Led_Heels
dim lap_count as byte
dim porta_out as byte
dim red_led as sbit at porta_out.2
dim grn_led as sbit at porta_out.5
dim blu_led as sbit at porta_out.4
main:
trisa=0x00
porta_out=0x00
for lap_count=0 to 7
red_led:
red_led=1
grn_led=0
blu_led=0
lata=porta_out
delay_ms(5000)
grn_led:
red_led=0
grn_led=1
blu_led=0
lata=porta_out
Delay_ms(5000)
blu_led:
red_led=0
grn_led=0
blu_led=1
lata=porta_out
delay_ms(5000)
next lap_count
trisa=0xff
end.

Pretends to be Ok with RA2 but unexpected behaviour RA4 RA5.
May be somebody know how to solve the issue?
Thanks
Attachments
Screenshot 2018-07-10 at 15.19.23.png
Screenshot 2018-07-10 at 15.19.23.png (50.85 KiB) Viewed 1614 times

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: Trouble with PIC16F18313 RA4 & RA5

#2 Post by filip.grujcic » 11 Jul 2018 12:48

Hello,

I believe we solved this on our helpdesk.

Kind regards,
Filip Grujcic

Post Reply

Return to “PIC PRO Compilers”