TalkBot_Slave1.c is the standard firmware that is supplied in
the TalkBotBrain when it is manufactured.

For more info on this firmware and the other optional firmwares, see;
www.TalkBotBrain.com/TalkBot_SourceFiles.htm


/******************************************************************************
	TalkBot_Slave1.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.

	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 19200 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.

	TalkBot can also be reprogrammed for other tasks, to become a;
	 Self-contained robot brain for small simple talking robots
	 Self-contained serial/SPI/i2c datalogger with 1Megabit of eeprom
	 Self-contained talking clock/timer/counter
	 Self-contained controller for talking machine/appliance/remote control
	 Slave PCB with big eeprom memory and 8 in/out ports
	
	For more TalkBot applications and FREE Sound Library files;
	 www.TalkBotBrain.com

******************************************************************************/