RC7 ON in Oshonsoft 18F4431 SIM

Thread Starter

camerart

Joined Feb 25, 2013
3,724
Hi,
I've got an odd situation, where 18F4431 RC7 PIN goes on at start of simulation.

Does anyone know what could cause this,please?

Camerart
 

Attachments

Last edited:

Ian Rogers

Joined Dec 12, 2012
1,136
I'd need to see the init code.. As its on an RX pin this should be an input.. All pins are normally tristate (input) when power up.
If you are using SPI then it will tristated until needed.
 

Thread Starter

camerart

Joined Feb 25, 2013
3,724
I'd need to see the init code.. As its on an RX pin this should be an input.. All pins are normally tristate (input) when power up.
If you are using SPI then it will tristated until needed.
Hi I,
This seems to happen before the initialisation, note the BREAK in the image.
I also tried different old programs, same result.
On my laptop, this doesn't happen, so it may be an OSH SIM thing.
Perhaps a different choice of pin may be better.
Thanks,
C.
 

jjw

Joined Dec 24, 2013
823
Hi,
I've got an odd situation, where 18F46K20 RC7 PIN goes on at start of simulation.

Does anyone know what could cause this,please?

Camerart
What is the problem as it happens before the simulation starts?
It should be correct after the initialisation.
 

Thread Starter

camerart

Joined Feb 25, 2013
3,724
What is the problem as it happens before the simulation starts?
It should be correct after the initialisation.
Hi J,
The program I'm testing uses RC7 to output data, so should flash, but stays on, I then noticed it is on at the start and stays that way.
I think the CODE will change later, so let's see what happens,
Cheers, C.
 

Ian Rogers

Joined Dec 12, 2012
1,136
Right! Now check the SSPMX bit in the config as this can be remapped! It should default to RC7 but check activity on RD1 as that is the second position. It may be a Vlad bug..
 

Thread Starter

camerart

Joined Feb 25, 2013
3,724
Right! Now check the SSPMX bit in the config as this can be remapped! It should default to RC7 but check activity on RD1 as that is the second position. It may be a Vlad bug..
Hi I,
To make sure I used the same CODE on both machines, I downloaded it from the thread, and they're both the same, but I think you're on the right lines, and it may be a Vlad bug.
C.
-------------------------------------------
Define CONFIG1L = 0x00
Define CONFIG1H = 0x06 '8mHz XTL x4 =32mHz
Define CONFIG2L = 0x0c
Define CONFIG2H = 0x20
Define CONFIG3L = 0x04
Define CONFIG3H = 0x80
Define CONFIG4L = 0x80 'Set for HVP
Define CONFIG4H = 0x00
Define CONFIG5L = 0x0f
Define CONFIG5H = 0xc0
Define CONFIG6L = 0x0f
Define CONFIG6H = 0xe0
Define CONFIG7L = 0x0f
--------------------------------




Define CONFIG7H = 0x40
 
Top