Page 1 of 1

3 x 7 segmet multiplexing problem

Posted: Tue Dec 05, 2017 11:35 am
by rashid khan
Dear All,

Initially we used 16f883 and got good results , later we realised that the memory of 16f883 is less than what we required , so we changed the microcontroller to 16f1936 , but we are now having issues of 1) 7 segment display not stable 2) flickering.

Please find attached flowcode file .

Thanks and regards
Rashid Khan

Re: 3 x 7 segmet multiplexing problem

Posted: Tue Dec 05, 2017 3:13 pm
by LeighM
You probably need to check your clock frequency, the default internal is quite slow, also differing time for execution paths could cause flicker.
Alternatively you could consider putting the digit strobes on a fixed time period interrupt.

Re: 3 x 7 segmet multiplexing problem

Posted: Wed Dec 06, 2017 1:13 pm
by Benj
It looks like the default intosc speed on the device is 500KHz.

You can speed up the device by adding a C code icon to the start of your program and also changing the clock speed in the project options.

16MHz

Code: Select all

osccon = 0x78;


32MHz

Code: Select all

osccon= 0xF0;


I've moved the topic to the Flowcode 5 forum topic as it's clearly not a v7 project.

Re: 3 x 7 segmet multiplexing problem

Posted: Sat Dec 09, 2017 1:33 pm
by rashid khan
Hi Benz / LeighM ,

Thanks for the inputs

We were using the internal oscillator , after we used a external oscillator (4Mhz) , the 7 segment display is now stable and flicker less .