Author |
Message |
Topic: Reading PORTC problem |
ctest
Replies: 7
Views: 9509
|
Forum: General CCS C Discussion Posted: Tue Aug 29, 2023 2:38 pm Subject: Reading PORTC problem |
Ttelmah thanks, problem solved. On this way:
I set addresses UCFG and UCON
#word UCFG = 0X0F6F;
#WORD UCON=0X0F6D;
#include <main9.h>
#fuses INTRC_IO, NOWDT, BROWNOUT, PUT,NOPROTECT, ... |
Topic: Reading PORTC problem |
ctest
Replies: 7
Views: 9509
|
Forum: General CCS C Discussion Posted: Tue Aug 29, 2023 1:40 pm Subject: Reading PORTC problem |
Sorry, on vUSB is 3 V. |
Topic: Reading PORTC problem |
ctest
Replies: 7
Views: 9509
|
Forum: General CCS C Discussion Posted: Tue Aug 29, 2023 10:05 am Subject: Reading PORTC problem |
Thank you,
I am using CCS c compiler version 5.109. Vusb is not connected. |
Topic: Reading PORTC problem |
ctest
Replies: 7
Views: 9509
|
Forum: General CCS C Discussion Posted: Tue Aug 29, 2023 8:16 am Subject: Reading PORTC problem |
Thank you,
I am using 18f4550 microcontroller and pic CCS c compiler. I have the same devices connected to pin C5 and to pin C4. The first optocoupler H11AA1x is connected to C4, and the second optoc ... |
Topic: Reading PORTC problem |
ctest
Replies: 7
Views: 9509
|
Forum: General CCS C Discussion Posted: Tue Aug 29, 2023 6:13 am Subject: Reading PORTC problem |
I have simple hardware as in the picture. I wrote the software for it. The LED is always lit regardless of the button. Port c5 always reads low state. What could be the problem?
#fuses INTRC_IO, ... |
|