|
|
Rockbox mail archiveSubject: to send data to a remote via RxD1From: orion2003_at_hushmail.com Date: 2002-10-10
Hi,
it looks this topic interests a lot of people, so I may give you a suggestion :
Reading the SH703x hardware manual, I found something which could be of interest for you. The TPC (chapter 11) can provide pulse outputs by using the 16-bit integrated timer pulse unit (ITU) as a time base. The TPC pulse outputs can be enabled or disabled separately. In your case, you just need to enable TP10 which is the same pin than RxD1 to use it for outputting your data to a remote. DMAC can be used in conjunction too.
So, to send a packet, you set PB10 as TP10 instead of RxD1, activate your chosen ITU timer with interruption IMIA (you need a handler to give use which bit to send at each interrupt).
How to set for ordinary TPC output ?
1. select GRA as the output compare register (output disable) with the imer I/O control register (TIOR).
Get your free encrypted email at https://www.hushmail.com
Page was last modified "Jan 10 2012" The Rockbox Crew |