Author |
Message |
Topic: rs485.c problem with 16f628-16f1827 chips |
czorgormez
Replies: 11
Views: 25754
|
Forum: General CCS C Discussion Posted: Sun Jan 17, 2021 9:49 pm Subject: rs485.c problem with 16f628-16f1827 chips |
thanks pcm, ttelmah, temtronic. |
Topic: rs485.c problem with 16f628-16f1827 chips |
czorgormez
Replies: 11
Views: 25754
|
Forum: General CCS C Discussion Posted: Sat Jan 16, 2021 10:19 am Subject: rs485.c problem with 16f628-16f1827 chips |
i assumed the wizard would do this correctly when i choose serial ports. |
Topic: rs485.c problem with 16f628-16f1827 chips |
czorgormez
Replies: 11
Views: 25754
|
Forum: General CCS C Discussion Posted: Fri Jan 15, 2021 7:21 pm Subject: rs485.c problem with 16f628-16f1827 chips |
Ok i found the mistake
i started this project and configure fuses and IO lines with wizard, and there was this 2 line on the main.h file
#use FIXED_IO( A_outputs=PIN_A2 )
#use FIXED_IO& ... |
Topic: rs485.c problem with 16f628-16f1827 chips |
czorgormez
Replies: 11
Views: 25754
|
Forum: General CCS C Discussion Posted: Fri Jan 15, 2021 4:21 pm Subject: rs485.c problem with 16f628-16f1827 chips |
@temtronic
can you check rs485.c driver please. that is how ccs wrote the driver. hw uart interrupt (RDA)on RX and not using HW uart on TX side. they do this way because hw uart is not supporting ... |
Topic: rs485.c problem with 16f628-16f1827 chips |
czorgormez
Replies: 11
Views: 25754
|
Forum: General CCS C Discussion Posted: Fri Jan 15, 2021 1:48 pm Subject: rs485.c problem with 16f628-16f1827 chips |
yes that works on 18F chips but not in 16F series (i tried 16f628a and 16f1827)
the reason i use sw uart on hw pins is to be compatible with rs485.c code.
the comp. version is 5.026 |
Topic: rs485.c problem with 16f628-16f1827 chips |
czorgormez
Replies: 11
Views: 25754
|
Forum: General CCS C Discussion Posted: Fri Jan 15, 2021 1:11 pm Subject: rs485.c problem with 16f628-16f1827 chips |
hi everyone
I am using rs485.c driver code with 18f4520, 18f452... several 18F chips
without a problem. I needed to use same structure with 16f628 chip and it didn't work (ext_interrupts = FALSE c ... |
|