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
3 x 7 segmet multiplexing problem
Moderator: Benj
-
- Posts: 3
- Joined: Tue Dec 05, 2017 10:08 am
- Been thanked: 1 time
- Contact:
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: 3 x 7 segmet multiplexing problem
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.
Alternatively you could consider putting the digit strobes on a fixed time period interrupt.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: 3 x 7 segmet multiplexing problem
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
32MHz
I've moved the topic to the Flowcode 5 forum topic as it's clearly not a v7 project.
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;
Code: Select all
osccon= 0xF0;
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 3
- Joined: Tue Dec 05, 2017 10:08 am
- Been thanked: 1 time
- Contact:
Re: 3 x 7 segmet multiplexing problem
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 .
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 .