DA14585 Configuring BLE_DIAGCNTL_REG to output extrc_rxen to gpio

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
robwasab
Offline
Last seen:2 years 1 week ago
加入:2018-01-03 02:20
DA14585 Configuring BLE_DIAGCNTL_REG to output extrc_rxen to gpio

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);

Device:
TR_Dialog
Offline
Last seen:1 month 3 weeks ago
Staff
加入:2014-06-30 23:52
Hi,

Hi,

I have sent you an email about this issue directly. Please take a look.

Thanks,
TR_DIALOG

mapart
Offline
Last seen:3 weeks 3 days ago
加入:2018-11-30 15:58
Hi,

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

Jean
Offline
Last seen:1 year 5 months ago
加入:2018-03-15 06:01
Hi,

Hi,

Could I get the information, too.
I am trying the same thing.
Thank you.

fn654
Offline
Last seen:1 year 9 months ago
加入:2016-06-14 13:27
Hi :

Hi :
I have the same question .How can I use other port to control sky 66111?
thanks

dmak
Offline
Last seen:2 years 7 months ago
加入:2018-04-24 08:15
I have the same question

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!

PM_Dialog
Offline
Last seen:2 days 12 hours ago
Staff
加入:2018-02-08 11:03
Hi dmak,

Hi dmak,

我们使用了反向tx信号作为rx based on some test results.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:2 days 12 hours ago
Staff
加入:2018-02-08 11:03
Hi All,

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.xmece.com/sites/default/files/um-b-089_da14585_range_extender_reference_application_v1.0.pdf

Thanks, PM_Dialog