Id start with Original program that drove LED make sure it's working. You may 
have code that's not a valid starting point. Then wire up the Output to the new 
LED. Once that works use the register setting and existing code to move to the 
new I2C. You might have inherited broken code. Start simple as in getting a 
proper I2C clock and Data. Good news you have a JTAG to inspect mux and I2C 
register values it's not good you don't have a scope or Salae logic analyzer. 
Too me that seems a bit difficult for someone pre CSEE with no debugging 
experience. Put a loop around the transmission code with a delay. You want to 
start with the minimal working example. You also need to be able to read the 
board schematic for correct I2C header pins. Did you find a starterware I2C 
example for your board I'd trust it more than this code. Again break it down to 
simplest working subset as in I2C clock and Data working I think using just a 
Led is to debug is a bit too much to ask for a beginner I'd nicely request a 
cheap serial protocol analyzer it's essential for debugging the commands and 
cheaper than a scope. If you're serious about becoming a low level embedded 
Engineer beg borrow or steal the $$$ if whomever assigned you this won't supply 
a scope or analyzer. Look at as an investment in your future. Also a simpler 
example will be easier to ask for help. Stay positive and keep digging and 
learning and asking questions.


Sent from Yahoo Mail on Android 
 
  On Sat, Aug 15, 2020 at 10:18 PM, [email protected]<[email protected]> 
wrote:   FYI I do not have an oscilloscope so I have just been testing pin 15 
with a multimeter and I also just have an led on a breadboard, to test if a 
signal is coming from the pwm on pin 15.

On Saturday, August 8, 2020 at 12:57:15 PM UTC-7, M wrote:
Can anyone provide a C program that can be run in CCS that would program an I2C 
controller on the BBB board to generate the desired clock frequency signal and 
the required data signals on the I2C bus.

Part 1. Program the device to generate signals to turn LED15 to full ON. Should 
be measurable voltage from the number 15 signal pin on the servo board.
Part 2. Develop commands you send to PCA9685 to intialize it for the  correct 
frequency for your servo, set up a timer on the BBB to control delays, and 
intialize the BBB User LEDs.


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/533def37-f79d-416a-9aef-4f2056685c54o%40googlegroups.com.
  

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/786851262.1956146.1597550293131%40mail.yahoo.com.

Reply via email to