Forum Discussion
30 Replies
- Altera_Forum
Honored Contributor
where are you people,I'm so unlucky :(
- Altera_Forum
Honored Contributor
Well we've gotten most of the info to start, but first what is the type of the IR transmitter and receiver?
Second, how familiar are you with VHDL? You said you used it as a programming language, but it is not. It describes hardware, and such needing a different way of thinking. But that left aside. We need to know as much information as you can give. - Altera_Forum
Honored Contributor
So Cyclone II is a good start. I assume you are using a demo board. The only board with Cyclone II and IR that I know of is the DE2 Terasic board: http://www.mouser.com/pdfdocs/terasic_de2_usermanual_16.pdf
This will refer you to microchip's paper: http://www.microchip.com/stellent/groups/sitecomm_sg/documents/training_tutorials/en532270.pdf Based on this paper, it looks that the IR sensor is interfaced to the FPGA via a UART handler (MCP215X). So this is good because you only have to worry about the UART. They say the baudrate is 115200. So all you need to do is go to Qsys, drop in NIOS ii cpu and UART RS-232 IP. Expose UART-RX and TX. Then write the communication protocol in NIOS using C. Here is a very good link with code to use UARTs with interrupts: http://www.alteraforum.com/forum/showthread.php?t=17224 Please confirm which board you are actually using. FPGA development is not easy so keep at it! - Altera_Forum
Honored Contributor
--- Quote Start --- So Cyclone II is a good start. I assume you are using a demo board. The only board with Cyclone II and IR that I know of is the DE2 Terasic board: http://www.mouser.com/pdfdocs/terasic_de2_usermanual_16.pdf This will refer you to microchip's paper: http://www.microchip.com/stellent/groups/sitecomm_sg/documents/training_tutorials/en532270.pdf Based on this paper, it looks that the IR sensor is interfaced to the FPGA via a UART handler (MCP215X). So this is good because you only have to worry about the UART. They say the baudrate is 115200. So all you need to do is go to Qsys, drop in NIOS ii cpu and UART RS-232 IP. Expose UART-RX and TX. Then write the communication protocol in NIOS using C. Here is a very good link with code to use UARTs with interrupts: http://www.alteraforum.com/forum/showthread.php?t=17224 Please confirm which board you are actually using. FPGA development is not easy so keep at it! --- Quote End --- yes i 'm using this demo board,i'm using VHDL as programing language.i want to know how to programe the infrared HSDL-3201 - Altera_Forum
Honored Contributor
You need to provide a circuit diagram as well. How is HSDL-3201 connected to the FPGA? Are the RXD and TXD pins connected directly to the FPGA or is there something in between?
If they are directly connected then you just need to look at HSDL's datasheet and replicate its communication protocol. - Altera_Forum
Honored Contributor
--- Quote Start --- Well we've gotten most of the info to start, but first what is the type of the IR transmitter and receiver? Second, how familiar are you with VHDL? You said you used it as a programming language, but it is not. It describes hardware, and such needing a different way of thinking. But that left aside. We need to know as much information as you can give. --- Quote End --- the type of IR is HSDL-3201. i know how to use VHDL.i'm working on FPGA (demo board) http://www.mouser.com/pdfdocs/terasic_de2_usermanual_16.pdf - Altera_Forum
Honored Contributor
Altera already provides the IrDA UART IP core. You can find it in Qsys. ftp://ftp.altera.com/up/pub/altera_material/14.1/university_program_ip_cores/communications/irda.pdf
Are you trying to create your own hardware driver for it?? It would involve reading the RXD and TXD signals and then decoding them into a UART byte stream. Not the most complicated task, but it isn't easy either. Why don't you just use the pre-made Altera IP. This way you can get your 2 FPGA's talking via IrDA w/o too much development. You still need to use Nios and do some C coding. - Altera_Forum
Honored Contributor
--- Quote Start --- Altera already provides the IrDA UART IP core. You can find it in Qsys. ftp://ftp.altera.com/up/pub/altera_material/14.1/university_program_ip_cores/communications/irda.pdf Are you trying to create your own hardware driver for it?? It would involve reading the RXD and TXD signals and then decoding them into a UART byte stream. Not the most complicated task, but it isn't easy either. Why don't you just use the pre-made Altera IP. This way you can get your 2 FPGA's talking via IrDA w/o too much development. You still need to use Nios and do some C coding. --- Quote End --- FPGA already contains the infrared component each FPGA contains (emeteur / receiver) and there are pines inputs and output for that we can affect the data I just need to know! how I'm going to program this component and i should use VHDL as programming language tanks so so so so much for your help - Altera_Forum
Honored Contributor
You see you have two pins from the tranceiver, so from this you can derrive you will have to send the data trough a serial protocol. This protocol is discussed in the datasheet of the transceiver. You can find this by searching the web for the transceiver (Agilent HSDL-3201). So now you need to design the hardware to control this.
- Altera_Forum
Honored Contributor
--- Quote Start --- You see you have two pins from the tranceiver, so from this you can derrive you will have to send the data trough a serial protocol. This protocol is discussed in the datasheet of the transceiver. You can find this by searching the web for the transceiver (Agilent HSDL-3201). So now you need to design the hardware to control this. --- Quote End --- I do not know how to create the frame that I will send from the transmitter to the receiver. should I create a pulse after the frequency dividers to use it as a frame?