How to set Douts in firmware
Posted: Mon 15. Apr 2024, 07:27
Could you please hel us.
We have PCAN-Router Pro FD.
Bootloader version: 2.0.11
Hardware Version 5
FPGA ver: 10
We downloaded the latest version of the developer's package and checked an example "08_HW_IO".
The problem is next....if we run this code
we receive 12 volts only on the first output, the other three outputs show 0 volts. How to set "logic 1" on another outputs?
0xFF is 0b11111111
we tried to use 0x0F, also no any effects.
We have PCAN-Router Pro FD.
Bootloader version: 2.0.11
Hardware Version 5
FPGA ver: 10
We downloaded the latest version of the developer's package and checked an example "08_HW_IO".
The problem is next....if we run this code
Code: Select all
HWResult_t HW_SetDOUT ( uint32_t *buffer)
{
if ( buffer == NULL)
{ return HW_ERR_ILLPARAMVAL;}
FPGA->SYS_DOUT_WR = buffer[0];
return HW_ERR_OK;
}
uint32_t tmp32 = 0xFFFF (or 0xFF);
// set DOUTs, all bits used
HW_SetDOUT ( &tmp32);
0xFF is 0b11111111
we tried to use 0x0F, also no any effects.