Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Digital populator

Status
Not open for further replies.

VincentM

Programmer
May 13, 2007
1
US
I have just recently been introduced to assembly code and have an issue. In order to properly code a project that has been assigned to me, I need to simulate a populated area using a PIC chip. If the chip need be specified I can supply the actual number. What needs to be done is the LCD supplied on the PIC board must be randomly populated with 1's as many times as a pushbutton is pressed. After the sampling is complete the LCD will display randomly placed 1's on the LCD and 0's where there are no 1's. I know my code pretty well but do not know how to attack the issue. Any pointers are greatly appreciated.
 
1. Prototype the code in 'C' on your PC to be sure you have the logic correct. The 'LCD' in this case would be outputting to the normal console. If you separate the 'world' from the 'display', then that will make the porting easier.

2. Assuming you have some kind of development kit with a 'button' and an 'LCD' all wired up, then practice with the sample code and the tools to get familiar with the process.

When you have both, then you should be able to complete the final step.


--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top