USB/ RS232 connexion

USB/ RS232 connexion - C - Programmation

Marsh Posté le 10-10-2012 à 13:34:03    

je suis débutante dans l'utilisation de Keil µvision 4.0, j'ai la carte "LPC1788 Developer’s Kit" et je veux écrire un programme pour mon microcontroleur qui permet de reçevoir un message par le port USB et l'envoyer par le port RS232. Est ce que quelqu'un peut m'aider s'il vous plait !

Reply

Marsh Posté le 10-10-2012 à 13:34:03   

Reply

Marsh Posté le 10-10-2012 à 14:29:22    

Ben faites déjà voir ce que vous avez écrit comme code qui ne marche pas.

Reply

Marsh Posté le 10-10-2012 à 14:44:59    

Au vu de la page du dev kit:

Citation :

Project files exist for Code Red's LPCXpresso/Red Suite and for Keil's MDK-ARM.
 
FreeRTOS - An example showing how to use the real-time operating system FreeRTOS
Analog - An example reading values from the potentiometer on the OEM Base Board
EEPROM - An example illustrating how to read from and write to the EEPROM on the OEM Board as well as the EEPROM on the OEM Base Board
Memreg - Illustrating how to turn on/off memory mapped LEDs on the OEM Base Board.
NAND - An example showing how to access (read, write, erase) the NAND flash on the OEM Board.
Accelerometer - An example showing how to use the digial accelerometer on the OEM Base Board.
Audio (I2S) This example is using the UDA1380 audio code and I2S to play an audio file.
EasyWeb - A simple webserver.
FatFs - An example using the FatFs module to access a memory card.
Joystick - An example showing how to read the state of the joystick on the OEM Base Board
PCA9532 - An example showing how to use the buttons and LEDs on the OEM Base Board which are connected to the PCA9532.
Speaker - WAV - This project illustrates the use of the speaker mounted on the OEM Base Board. The DAC output on the LPC1788 is used.
Temperature - An example that illustrates the use of the temperature sensor (LM75A) mounted on the OEM Base Board.
UART - RS232 - This project illustrates the use of UART output on the RS232 port on the OEM Base Board.
USBHID - This project illustrates the use of the USB device interface. A USB HID (Human Interface Device Class) is implemented in this example.
USB Host Lite - NXP's USB Host Mass Storage example.
SDRAM - An example showing how to use the SDRAM on the OEM Board.
Demo Application - The demo application that is (typically) pre-loaded on the board.

Il va falloir vous baser sur cet exemple que vous devez avoir je pense, plus une configuration ad-hoc du UART-to-USB Bridge du board.
A+,


---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
Reply

Marsh Posté le 10-10-2012 à 15:42:28    

Merci, je vais voir cet exemple.

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed