Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:02 06 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : extra gpio pins

Author Message
cheeseprader
Newbie

Joined: 06/10/2016
Location: United States
Posts: 7
Posted: 05:13am 15 Oct 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 6269
Posted: 11:01am 15 Oct 2016
Copy link to clipboard 
Print this post

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
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025