TalkBot_Slave2.c is an optional firmware that can be used in the
TalkBotBrain instead of the original Slave1 firmware. To install this
firmware in the TalkBotBrain you will need a PIC programmer that can
in-circuit program the PIC 16F628.
For more info, see;
www.TalkBotBrain.com/TalkBot_SourceFiles.htm


/******************************************************************************
	TalkBot_Slave2.c      v1.0    29th July 2009 - Roman Black
	Open-source-firmware for TalkBotBrain product from BlackRobotics.com
	This firmware is open-source for use by legitimate owners
	who purchased a TalkBotBrain. All rights to the TalkBot hardware
	circuitry design remain property of BlackRobotics.

	This is TalkBot_Slave2 - it is identical to Slave1 but
	all serial commands RX/TX must be 2400 baud, NOT 19200.
	(Sound download from PC is still at 19200 baud.)

	TalkBot1 uses a PIC 16F628 and 2x 24LC512 i2c eeproms (1Megabit).
	It is a slave PCB for robotics. It will simultaneously drive
	8 RC servos and play speech or other sounds via a 1bit output.
	It is controlled by 1 serial pin with either 1byte or 2byte
	commands, all at 2400 baud;

	 0sssssss (1byte) ascii 'A' to 'Z'; plays the first 26 sounds; 0-25
	 11111111 SOUND (2byte) plays any sound (SOUND); 0-255
	 1ssspppp pppppppp (2byte) move servo (s) 0-7, to pulse width (p) in uS

	After receiving any valid command TalkBot sends a 1byte confirmation
	out to serial TX; for sound playing commands it sends the sound
	number (0-255) AFTER the sound has been played.
	For move servo command it sends the servo number (0-7)
	after the servo pulse width has been changed.

	For more TalkBot applications and FREE Sound Library files;
	 www.TalkBotBrain.com

// NOTE! Set TABS to 4
******************************************************************************/