Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Read system time to RTC via USB, using a PIC

Status
Not open for further replies.

sankey88

Newbie level 3
Newbie level 3
Joined
Jan 12, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
Hello,
I face a small challenge.
I'm designing an app which when plugged into the USB port of a PC, must read and store the PC time on a RTC chip (DS1307). Basically, I need to sync the time.
Please help me on this ..
 

vijay s

Full Member level 3
Full Member level 3
Joined
Jun 14, 2008
Messages
159
Helped
27
Reputation
54
Reaction score
9
Trophy points
1,298
Location
Coimbatore, India
Activity points
2,152
You can use Microchip USB stack to connect PIC to PC via USB

The problem you described is to be handled in PC side... write an software that sends PC time via USB whenever it detects connection from the specified USB ID.. and your firmware should made to handle this...
 

    sankey88

    Points: 2
    Helpful Answer Positive Rating

sankey88

Newbie level 3
Newbie level 3
Joined
Jan 12, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
Sure, will try n work on it and get back. Thank You :)
 

unaided

Member level 5
Member level 5
Joined
Mar 3, 2006
Messages
80
Helped
10
Reputation
20
Reaction score
1
Trophy points
1,288
Location
China
Activity points
1,652
I think it is cheaper and easier by using usb to rs232 chip than using real usb stack.
You just need to send pc time to PIC and set time to RTC.
Using real usb is too waste.
 

    sankey88

    Points: 2
    Helpful Answer Positive Rating

anandpv2009

Advanced Member level 1
Advanced Member level 1
Joined
Aug 11, 2009
Messages
407
Helped
60
Reputation
120
Reaction score
40
Trophy points
1,308
Activity points
3,342
Its very simple yaar.

Create a virtual serial port using a PIC18F2550. Use vb.net in PC side just send time via serial port control which is inbuilt with .net.

If u have any doubt post here.
 

sankey88

Newbie level 3
Newbie level 3
Joined
Jan 12, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
Guys! Thank you for all the tips, but it's really not helping me all that much. I'm a layman you see.. I need more help. Your posts seem a bit too vague to me. Please give me more details. Ppl sayin that i can use stacks/vb.net/etc doesn really help. Gimme some links to tutorials or pls teach me. I'll be very greatful to you guys..
 

Ganesh_kolhe

Junior Member level 1
Junior Member level 1
Joined
Jan 13, 2010
Messages
18
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Location
pune
Activity points
1,366
Simply just write code in vb.net
you have to take system date and send it your USB port
In the PIC programming read the data arrange it
and Display on whatever you want

Regards,
Ganesh
Embspark Technologies
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top