PDA

View Full Version : Rentron's TX-IR PIC Needed / Pre-programmed PIC12F609



prodabbler
- 2nd January 2014, 20:33
Anyone have this pre-programmed part that I can purchase? Seems Rentron is no longer, but if the program can be obtained that would be nice as well. We purchased them with the IR program in them, hence the TX-IR part name. Thanks in advance!

mackrackit
- 4th January 2014, 10:51
http://web.archive.org/web/20130116014209/http://www.rentron.com/Infrared_Communication.htm

prodabbler
- 5th March 2014, 15:47
I'm in a serious bind. Is the original code for the Rentron's TX-IR PIC obtainable? I need the 38kHz PWM code (50%) duty cycle. I'm using an external 4MHz oscillator. I can not seem to duplicate it since I'm still trying to interface to an emulator to debug. I've simply run out of time. Any help would be greatly appreciated! Below is what I think it is.

----------------

PROCESSOR p12f609
#include "p12f609.inc"
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF & _XT_OSC
#DEFINE PORT B'11111101'
MOVF OSCCAL
MOVLW PORT
TRIS GPIO

BEGIN
BCF GPIO, 1 ;1uS
NOP ;2uS each nop is 1uS long
NOP ;3uS
NOP ;4uS
NOP ;5uS
NOP ;6uS
NOP ;7uS
NOP ;8uS
NOP ;9uS
NOP ;10uS
NOP ;11uS
NOP ;12uS
BSF GPIO, 1 ;1uS Begin HIGH duty cycle
NOP ;2uS
NOP ;3uS
NOP ;4uS
NOP ;5uS
NOP ;6uS
NOP ;7uS
NOP ;8uS
NOP ;9uS
NOP ;10uS
NOP ;11uS
NOP ;12uS
GOTO BEGIN ;2uS (26uS total for 38KHz)
END

grahamg
- 5th March 2014, 17:56
PROCESSOR p12f609
#include "p12f609.inc"
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF & _XT_OSC

start:
BANKSEL ANSEL
CLRF ANSEL
MOVLW fDh
MOVWF TRISIO

Followed by your code should work

mackrackit
- 7th March 2014, 01:07
http://web.archive.org/web/20130702004200/http://www.rentron.com/Infrared_Communication.htm