1

Intense googeling failed to turn out a single decent example of how to program the RTC. all I could find were examples for the C5000/4000 models, which seems work differently as I was unable to locate any of the header files required to get the sample code to compile.

the closest I got was finding the RTC user manual, but it's no help at all on the subject of actually programming the real time clock using C

I'd appreciate to no end a working example or a pointer to where such an example exists

Tom
  • 189
  • 8
  • If you don't get an answer today try posting at about 2pm EST on Saturday/Sunday when the most people seem to be on. This will be a hard question but I think persistence will help. – Chuck Vose Jan 19 '10 at 13:44
  • Thanks for the advice. but I really hope I wont have to wait that long... – Tom Jan 19 '10 at 13:46

1 Answers1

2

I'm assuming you are using TI's DSP/BIOS, as this seems to be the most common manner in which the C6000 family of DSPs are used. The DSP/BIOS operating system provides a number of APIs for interfacing with the real time clock (the CLK module). These APIs abstract away the registers and other low-level details of the RTC as described in the RTC user manual. This is generally the simplest way to use the clock as it avoids the need to manually "program" it.

See the CLK section in the API reference.

Dan Moulding
  • 211,373
  • 23
  • 97
  • 98