Page 1 of 1

Don't wanna use DP ???

Posted: Thu May 20, 2010 4:54 pm
by ksor
I don't want to use the DP on a COMMON CATHODE LED.

I want to use thr RB0 for interupting, so I "shifted" the connections of the LED on the port B one pin "up".

The DP HAS på be connected, so I connect it to the g-segmen RB7, but ...

the segment the DP is connected to will NOT light up if I choose to NOT show the DP and
ALLWAYS light up if I choose to light uo the DP !

The error is there with both common anode and cathode.

What is wrong ?

Re: Don't wanna use DP ???

Posted: Fri May 21, 2010 5:16 am
by Steve
If you keep the DP pin connected to something but customise the C code for this component to prevent this from being used/displayed, then the code will work on the microcontroller (but the simulation will be slightly worng).

Re: Don't wanna use DP ???

Posted: Fri May 21, 2010 7:13 am
by ksor
In fact there IS a posibility to choose the "Not connected" for the DP !

In this situation the simulation will work fine - but I then have problems with the HW.

Two Q comes up I think, why:

1) this posibility - if it must NOT be used ?
2) the differens in simulation and HW-implementation ?

It seems like a simple error to correct !

:shock: :shock: :shock:

Re: Don't wanna use DP ???

Posted: Fri May 21, 2010 4:05 pm
by Steve
What are the problems with the hardware? A program seems to compile ok when the decimal point is left unconnected.