CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Turn Led on - USB PIC
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 19260

View user's profile Send private message

PostPosted: Sun Aug 17, 2014 12:42 pm     Reply with quote

I think the key is his understanding of numbers.

He says he has changed the application to send 0 and 1.
This is wrong....

PCM_programmers application expects to receive ASCII '1' or ASCII '0', which is 0x31, or 0x30 (in hex), or 49/48 in decimal. The application shown, sends _decimal_ values as a byte, so the values need to be changed to 48/49. I think he has changed them to 0 and 1....
nando88



Joined: 25 Aug 2013
Posts: 28

View user's profile Send private message

Values
PostPosted: Mon Aug 18, 2014 6:31 am     Reply with quote

I just don't understand, what values should I send. In the original application, the values that where being read where 127 & 126. If you see the example, those are the values that are being used. I just don't understand what's the difference between the values that are being read. The other thing is that I can't make it work with java, and should be as easy as following the tutorial, but I can't make it work. Making it work with java is the whole purpose of my project.
Please help me fix this.
Thanks!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Aug 19, 2014 11:14 am     Reply with quote

This is not a Java developer's forum. You want to write a Java application
that can:
1. Call a Windows function and find out what Com port has been assigned
to the USB CDC device.
2. Configure Java to talk to that Com port.
3. Accept user keyboard input to the PC, and then send the keyboard
values to the Com port, which will then be sent (by USB) to the 18F4550
board, to turn on the LED.

We helped you with the PIC side. You need to find a Java forum to help
you with the Java side.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group