I've looked at the range extender 2 driver code, which uses the SKY6111 as an external PA and wish to do the following:
- Output the extrc_txen BLE diagnostic signal to P1_0.
- Output the extrc_rxen BLE diagnostic signal to P1_1.
The reason why the range extender code is not satisfactory to me is because it is hardcoded to use P0_1 and P0_2 and in order to implement the extrc_rxen signal, it inverts the extrc_txen signal. This is the code I'm running in periph_init() (runs everytime the radio wakes up).
Please verify that what I'm doing is indeed extracting the extrc_rxen signal. Furthermore is there any documentation on how to configure the BLE_DIAGCNTL_REG register and how it is routed to the ports. So far I've had my theories, which I think are correct, but it would be really helpful if there was a document.
/* Select diag signals */
SetBits32(BLE_DIAGCNTL_REG, DIAG0, 0x28); // extrc_txen
SetBits32(BLE_DIAGCNTL_REG, DIAG1, 0x28); // rxen=extrc_txen_inv
/* Map to diag port bits */
SetBits32(BLE_DIAGCNTL3_REG, DIAG0_BIT, 3); // extrc_txen
SetBits32(BLE_DIAGCNTL3_REG, DIAG1_BIT, 2); // << GUESSED THIS VALUE
/* Enable diag ports */
SetBits32(BLE_DIAGCNTL_REG, DIAG0_EN, 1);
SetBits32(BLE_DIAGCNTL_REG, DIAG1_EN, 1);
/* Output diag signals to P0 GPIOs */
SetBits16(P10_MODE_REG, PID , 18);
SetBits16(P10_MODE_REG, PUPD, 3);
SetBits16(P11_MODE_REG, PID , 18);
SetBits16(P11_MODE_REG, PUPD, 3);
Hi,
I have sent you an email about this issue directly. Please take a look.
Thanks,
TR_DIALOG
Hi,
Could I get access to the same information that was mailed to OP?
I'm trying to achieve the same thing (changing ports and pins from the driver).
Best regards
Martin
Hi,
Could I get the information, too.
I am trying the same thing.
Thank you.
Hi :
I have the same question .How can I use other port to control sky 66111?
thanks
I have the same question about how to use BLE_DIAGCNTL_REG and BLE_DIAGCNTL3_REG since the document is not clearly show the usage of the bits. What I am using is DA14585 and SKY66111 with P0_1 as TX and P0_2 as RX. I used the original configuration for BLE_DIAGCNTL3_REG (set both DIAG1_BIT, DIAG2_BIT to 3 and DIAG2_INV to 1), it seems this setting does not gain much radio power(about -23 db). However, after few times trying, It gives me about -9db when I set DIAG1_BIT to 1, DIAG2_BIT to 3 and DIAG2_INV to 1. Please give me more hints about how to configure this PA properly. Thanks!
Hi dmak,
我们使用了反向tx信号作为rx based on some test results.
Thanks, PM_Dialog
Hi All,
The DA14585 Range Extender Reference Application (UM-B-089) document describes the specifications for BLE_DIAGCNTL_REG, BLE_DIAGCNTL2_REG , BLE_DIAGCNTL3_REG registers. Please follow the link below:
//www.wsdof.com/sites/default/files/um-b-089_da14585_range_extender_reference_application_v1.0.pdf
Thanks, PM_Dialog