cancel
Showing results for 
Search instead for 
Did you mean: 

CEC TV emulate with STM32, how id setup?

MM..1
Chief III

We for testing CEC client device require emulate master. In normal device code we set

 

hcec.Init.OwnAddress = CEC_OWN_ADDRESS_x

 

but for TV master how is right choice?

 

 

hcec.Init.OwnAddress = CEC_OWN_ADDRESS_NONE;
or
hcec.Init.OwnAddress = CEC_OWN_ADDRESS_0;

 

exist some example?

3 REPLIES 3
SofLit
ST Employee

Hello,

To my knowledge, there is no master slave architecture but there are initiators and destinations and each of them has its own physical address. So if you need to send something to another device, you need to know its address (destination address).

Look at the CEC examples in CubeHAL: https://github.com/STMicroelectronics/STM32CubeF0/tree/master/Projects/STM32072B_EVAL/Examples/CEC

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Yes i check all this examples and have working real CEC . Then i need some testing device as Initiator i name it master. In AV normal TV have logical address 0  and logical addr is used to communicate. But define for address 0 in STM headers set 01  and addr_none set 00, then i ask how is right?

Hello,

You can refer to the AN3127 "CEC networking using STM32F100xx value line microcontrollers".

I think chapters 1.4.6 Logical addressing / 1.4.7 Logical address allocation may answer your question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.