![]() |
Forum Index : Microcontroller and PC projects : extra gpio pins
Author | Message | ||||
cheeseprader Newbie ![]() Joined: 06/10/2016 Location: United StatesPosts: 7 |
On page 15 of the manual, it says you can use the console pins as a 3rd serial port. I am assuming once you have your program written, you can read the hex program using a pickit 3 and then program that into other micromite chips. Would you simply use open "com3;9600" as #3 or something like this to use that port? Also, is it possible to use the console pins as gpio pins to get 2 extra pins using this method also? |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
To use the console pins as a third serial port, you use INKEY$ and INPUT and PRINT. You do not use COM3: The pins retain the same function as when used as the console so can't be used as general purpose GPIO pins. As mentioned in the manual, you have to be careful that you don't receive a ctrl-C. It also means that you can't use an interrupt to detect data available. Jim VK7JH MMedit |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |