PDA

View Full Version : PIC12F675 comms issues



Peter1960
- 23rd March 2007, 03:47
Hi, I am trying to put the Melanies Comms program, designed for 16f628 in a PIC12f675.
I set the osc to external and set all the required ports as gpio.
I can see test tx signals from my pic, but apeear not to be able to send characters to it.
suggestions, please ?

mackrackit
- 23rd March 2007, 04:18
Not familiar with the program. Did you include modedefs.bas?

Peter1960
- 23rd March 2007, 05:27
http://www.picbasic.co.uk/forum/showthread.php?t=573

mister_e
- 23rd March 2007, 15:04
How about CMCON and ANSEL?

Peter1960
- 25th March 2007, 04:18
Thanks Mr E,
ANSEL = 0 did the trick !
One curious thing though,
when I deleted the Transmit Defines, the program stopped working ?
Can you shed any light on it.
' Debug (Communication) Defines (Transmit)
' ----------------------------------------
DEFINE DEBUG_REG GPIO
DEFINE DEBUG_BIT 1
DEFINE DEBUG_BAUD 9600
DEFINE DEBUG_MODE 1
' I remm'd out the above lines

'
'
' DEBUG (Communication) Defines (Receive)
' ----------------------------------------
DEFINE DEBUGIN_REG GPIO
DEFINE DEBUGIN_BIT 2
DEFINE DEBUGIN_BAUD 9600
DEFINE DEBUGIN_MODE 1

skimask
- 25th March 2007, 04:24
Thanks Mr E,
ANSEL = 0 did the trick !
One curious thing though,
when I deleted the Transmit Defines, the program stopped working ?
Can you shed any light on it.
' Debug (Communication) Defines (Transmit)
' ----------------------------------------
DEFINE DEBUG_REG GPIO
DEFINE DEBUG_BIT 1
DEFINE DEBUG_BAUD 9600
DEFINE DEBUG_MODE 1
' I remm'd out the above lines

'
'
' DEBUG (Communication) Defines (Receive)
' ----------------------------------------
DEFINE DEBUGIN_REG GPIO
DEFINE DEBUGIN_BIT 2
DEFINE DEBUGIN_BAUD 9600
DEFINE DEBUGIN_MODE 1

'cause the DEFINES are what makes the comm's work in the first place!