RFM69HCW current usage in high power mode

Started by brolly759, February 28, 2018, 07:58:21 PM

perky

Quote from: LukaQ on March 01, 2018, 11:34:35 PM
HW does not have 32 states of power, only half, that is why you have /=2
The sx1231h datasheet actually states it's the upper values 16-31 of PAlevel that are used, technically the lower values 0-15 are undefined. Dividing by 2 forces the values to 0-15. Those values seem to work to a degree, but close examination of the current consumption in the link I gave above seems to show 80mA at a value of 15 and 110mA at a value of 31 (for PA1+PA2+HP), so I'm not convinced using 0-15 is the same as 16-31. Interestingly Radiohead uses 16-31.

Mark.

TomWS

Quote from: perky on March 02, 2018, 09:04:11 AM
The sx1231h datasheet actually states it's the upper values 16-31 of PAlevel that are used, technically the lower values 0-15 are undefined. Dividing by 2 forces the values to 0-15. Those values seem to work to a degree, but close examination of the current consumption in the link I gave above seems to show 80mA at a value of 15 and 110mA at a value of 31 (for PA1+PA2+HP), so I'm not convinced using 0-15 is the same as 16-31. Interestingly Radiohead uses 16-31.

Mark.
Good point.  I found that there is also a difference in output when a single PA is used, ie PA1 != PA2.  Unfortunately I don't remember which one to use if you're using a single (PA2, I think), I'd have to look at my old ATC code to confirm.

Tom

ChemE

This is one of the better write ups I've found over the years on the subject: http://www.electrobob.com/rfm69-output-power/

perky

Quote from: ChemE on March 02, 2018, 10:22:19 AM
This is one of the better write ups I've found over the years on the subject: http://www.electrobob.com/rfm69-output-power/
This firmware 'fix' is in the Radiohead library now.