{"id":8728,"date":"2007-04-16T21:27:00","date_gmt":"2007-04-17T01:27:00","guid":{"rendered":"https:\/\/nuxx.net\/blog\/2007\/04\/16\/9600n-8-1\/"},"modified":"2026-07-01T11:35:21","modified_gmt":"2026-07-01T15:35:21","slug":"9600n-8-1","status":"publish","type":"post","link":"https:\/\/nuxx.net\/blog\/2007\/04\/16\/9600n-8-1\/","title":{"rendered":"9600,N-8-1"},"content":{"rendered":"<p>Whenever I reset the PIC on my EasyPIC4 <em>(photo gallery retired)<\/em> my iPod toggles between pause and play.<\/p>\n<p>I now possess the world&#8217;s largest iPod remote.<\/p>\n<p><!--more Code here...--><br \/>\nYes, I&#8217;m aware of how much this sucks:<\/p>\n<blockquote><p><tt>program iPodRemoteTest<\/p>\n<p>sub procedure iprMode0x02<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0xFF)    'Mode 0x02 - Simple Remote<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x55)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x03)    'Length<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x00)    'Mode<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x01)    'Command (Change Mode...)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x02)    'Parameter (...to Mode 2)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0xFA)<br \/>\nend sub<\/p>\n<p>sub procedure iprPlayButton<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0xFF)    'Next Track<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x55)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x03)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x02)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x00)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x01)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0xFA)<br \/>\nend sub<\/p>\n<p>sub procedure iprButtonRelease<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0xFF)    'Button Release<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x55)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x03)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x02)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x00)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0x00)<br \/>\n&nbsp;&nbsp;  Soft_Uart_Write(0xFB)<br \/>\nend sub<\/p>\n<p>main:<br \/>\n&nbsp;&nbsp;  Soft_Uart_Init(PORTB, 2, 1, 9600, 0)<br \/>\n&nbsp;&nbsp;  iprMode0x02<br \/>\n&nbsp;&nbsp;  iprPlayButton<br \/>\n&nbsp;&nbsp;  iprButtonRelease<br \/>\nend.<\/tt><\/p><\/blockquote>\n<p><strike>I might write some subroutines for this<\/strike>, (done) then get it doing lots more&#8230; Hopefully within a day or so it&#8217;ll do things based on what the HML says to it&#8217;s USART.<\/p>\n<p>:D<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whenever I reset the PIC on my EasyPIC4 (photo gallery retired) my iPod toggles between pause and play. I now possess the world&#8217;s largest iPod remote.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,11,34],"tags":[],"class_list":["post-8728","post","type-post","status-publish","format-standard","hentry","category-electronics","category-making-things","category-moved-from-livejournal"],"_links":{"self":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/comments?post=8728"}],"version-history":[{"count":1,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8728\/revisions"}],"predecessor-version":[{"id":12902,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8728\/revisions\/12902"}],"wp:attachment":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/media?parent=8728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/categories?post=8728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/tags?post=8728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}