Propeller1 connection to PC via USB
Spiller
Posts: 52
in Propeller 1
Hi,
I would like to connect the P8X32A to PC for main control via USB. I think I need USB to serial conversion IC like the FT232. I have no SW practice how set up the HW and build up the communication. I have found some sample program in the internet but not fully cover my needs. Can any body give me advice or share me this kind of program?
Best Regards
Spiller
I would like to connect the P8X32A to PC for main control via USB. I think I need USB to serial conversion IC like the FT232. I have no SW practice how set up the HW and build up the communication. I have found some sample program in the internet but not fully cover my needs. Can any body give me advice or share me this kind of program?
Best Regards
Spiller
Comments
Thx the info. After my understanding if I use one of these loaders I can communicate (send/receive data) to the propeller in USB connection from a PC?
Regards
Spiller
As long as the software you download to the Prop includes a serial comms object that is set up to communicate on pins 30/31 the PC and Prop can communicate.
So I can use the same propeller ports for USB communication as for programming the propeller? Can I modify this serial comms object to use other ports?
Regards
Spiller
Changing the arguments in "ser.start", you can change the pins and the speed.
Short answer is yes. The line of code "ser.start(31, 30, 0, 115200)" in yeti's post above sets the serial object code to use pins 31 and 30. Any other two pins could be used for communicating with the outside world, but only 31 and 30 can be used for booting the Propeller via serial download.
There is also a 4 port object that can be used to enable four serial ports, each of which can run at different speeds and pins. I have used that object to build 8 and 12 port serial concentrators for laboratory and automation equipment.
I more than satisfied with these answers. I will try these codes. Thanks for both of you! Spiller