Jump to content


How to control LCD


  • You cannot reply to this topic
2 replies to this topic

#1 kamejoko80

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 21 August 2007 - 07:07 PM

Hi! I'm a new bie ! rolleyes.gif
How can I control extenal devices such as 7segment LED , 16x2 LCD by using impulseC in microblaze system ? unsure.gif

#2 etrexel

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 260 posts

Posted 22 August 2007 - 07:17 PM

QUOTE (kamejoko80 @ Aug 21 2007, 09:07 PM) <{POST_SNAPBACK}>
Hi! I'm a new bie ! rolleyes.gif
How can I control extenal devices such as 7segment LED , 16x2 LCD by using impulseC in microblaze system ? unsure.gif


Hi,
Direct control of external devices such as these is usually done through the use of co_register's for each signal in and out of the device along with co_port's to expose the in/out signals for the co_registers within the HDL which you then must manually connect up to the device signals. From within Impulse C you can basically bit-bang the interface just as you would using a CPU with the device attached to an I/O register.
For a simple example of this, please see the up-down counter example located in the CoDeveloper install directory: "C:\Impulse\CoDeveloper2\Examples\Generic\UpDownCounter"


Ed
Ed Trexel
Impulse Accelerated Technologies, Inc.

#3 kamejoko80

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 23 August 2007 - 03:47 AM

QUOTE (etrexel @ Aug 23 2007, 12:17 PM) <{POST_SNAPBACK}>
Hi,
Direct control of external devices such as these is usually done through the use of co_register's for each signal in and out of the device along with co_port's to expose the in/out signals for the co_registers within the HDL which you then must manually connect up to the device signals. From within Impulse C you can basically bit-bang the interface just as you would using a CPU with the device attached to an I/O register.
For a simple example of this, please see the up-down counter example located in the CoDeveloper install directory: "C:\Impulse\CoDeveloper2\Examples\Generic\UpDownCounter"


Ed


Thank you Mr etrexel , I will try it! rolleyes.gif





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users