Re: LED interfacing - Newbie question

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi

Sorry to post something unrelated to AVR. But hope you can treat this as a General Embedded system query and help me out.

I'm working on TMS320F2812, a 32-bit DSP. I need to interface an a 8X1 LED with my Processor through the GPIO's of the processor. The GPIO's are connected to the LED's through a 74HC273 D-Latch.

Can anyone give me pointers on how I must go about writing C-routines for the same ?? I have a couple of doubts :

1. My GPIO pins are wired to the D0 to D7 pins of the D-latch. The Outputs Q0 to Q7 are wired to the 8X1 LED Board. The CP pin is connected to another GPIO pin and the MR is connected to a XRS ( reset ) pin.

My confusion is :

how do i ensure connectivity of the GPIO's with pins (D0 - D7) of the latch through Software ( C- routine ) ??? Is this required at all ??

i.e, Do i need to define a structure with the address of D0 - D7 so that I actually realise the connection between them through software ??

2. OR do I just leave the hardware as is and just write code to give inputs to my GPIO's etc .. ??

Will appreciate if anyone can give me any pointers on how to go about the same. Any sample codes will be of immense help tooo.

thanks

skn

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

skn2405 wrote:
how do i ensure connectivity of the GPIO's with pins (D0 - D7) of the latch through Software ( C- routine ) ??? Is this required at all ??

i.e, Do i need to define a structure with the address of D0 - D7 so that I actually realise the connection between them through software ??

2. OR do I just leave the hardware as is and just write code to give inputs to my GPIO's etc .. ??

OK, not only is this not avr32 specific, it is very much TMS320-specific. For most processors, you will need to initialize the PIO controller for those IO pins and then set their state appropriately. Whether you need to do this and if so, whether you need to fill a structure and pass it to some function or whether you just need to write to some registers you'll have to read the manual.

Either way, as you know, this isn't the place.

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You should have read this thread before you posted: https://www.avrfreaks.net/index.p...

Quote:
This is the forum for discussing and sharing all things related to hardware for the AVR32 architecture. Everything from interfacing external devices to development kits.

TMS320F2812 is not an AVR32 or Atmel device, so please find an appropriate forum.

Hans-Christian