Seven Segment interface with LPC1769

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Seven Segment interface with LPC1769

跳至解决方案
2,221 次查看
vishakhadakhane
Contributor III

Hello I am working on MCUxpresso IDE and want to interface 7-segment display with LPC1769. I am using 3-digit seven segment and my goal is to display 3 digits. I did some code using the APIs which are present in LPCopen's e.g. After flashing the code to target, 7. 7. 7. gets displayed after some delay and if I change the data e.g. if I pass other numbers like 0,1,2 ..... the same gets displayed(7.7.7.). Do we need to clear the data? And how to clear that? I tried to find the API in the example and I found Chip_GPIO_SetPortOutLow to make the whole port low. I am not getting where the fault is. Is there any sample seven segment example for MCUxpresso? I am attaching the code kindly help me. Thanks in advance!

标签 (1)
1 解答
2,061 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Vishakha Dakhane,

Thanks for your reply.
For a 7-segment displayer, it usually has a common anode that would either connects to GND or Vcc.
So it's able to print the numbers on all the three digits simultaneously when these three common anodes are controlled by one signal like a pin's value.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

3 回复数
2,061 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Vishakha Dakhane,

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
Unfortunately, there's no similar demo in the LPCOpen library as you requested. Having a brief review of your code, I'd like to suggest you validate whether the status of GPIOs change as expect via multimeter firstly.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

2,061 次查看
vishakhadakhane
Contributor III

Hello @jeremyzhou I am able to print 0 to 9 on a single digit but now I would like to print the numbers on all the three digits simultaneously . Can you please tell me how to do it? Thanks in advance!

0 项奖励
2,062 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Vishakha Dakhane,

Thanks for your reply.
For a 7-segment displayer, it usually has a common anode that would either connects to GND or Vcc.
So it's able to print the numbers on all the three digits simultaneously when these three common anodes are controlled by one signal like a pin's value.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------