How to interface a RTC to S12SX and C time functions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to interface a RTC to S12SX and C time functions

2,711件の閲覧回数
AndersJ
Contributor IV

Assuming i have a RTC physically connected the cpu,

how do I interface the RTC software wise,

to the C time functions, in time.h.

 

Thanks,

Anders J

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,639件の閲覧回数
jsmcortina
Contributor III

You question is rather lacking in detail!

 

What kind of external real time clock are you trying to use? Often these might use SPI, in which case you will have to write routines to intialise and use the SPI communications.

 

James

0 件の賞賛
返信

1,639件の閲覧回数
AndersJ
Contributor IV

James. thanks for your interest.

 

My problem is not how to communicate with the clock.

My query is about the way I make the C time routines

use my RTC data, regardless of how my software accesses the RTC.

 

How do I tell Time() where to read MY realtime, so that it,

and other routines that call it can process date and time  properly.

 

Anders J

 

 

 

 

 

0 件の賞賛
返信

1,639件の閲覧回数
jsmcortina
Contributor III

Sounds like you will need to re-write the C libraries. It might be easier to use your own functions.

 

James

0 件の賞賛
返信