Welcome! Log In Create A New Profile

Advanced

BV501 and BVSerial

Posted by TCKsteve 
BV501 and BVSerial
April 20, 2014 07:20PM
BV501 display/keyboard is working OK but would like to update ATFlash - the BVserial available (on link to picchips) defaults to 9600 baud when COM is selected and should be 115000....?
Is there an alternative to load .upm BFF and BMP files using something like BV_com2?
Which pins can be used for ADC on the I/O socket and which achannels supported? (ADC0-9 are used by keypad)
Re: BV501 and BVSerial
April 20, 2014 08:26PM
AhAH! type in .h to get help then .baud to change baud rate!
But how many adc channels are available (which pins) for the bv501.... I need 4 ADC and 4 digital.
Re: BV501 and BVSerial
April 21, 2014 10:43AM
hello,
the ports available on the pins are available at this link http://www.bypic.byvac.com/index.php/BV501#hardware

Those pins can be related back to the IC using the data sheet (MX1) at the top of this page http://www.bypic.byvac.com/index.php/Products

Any pin can be a digital pin but are by default set as analogue pins, only some pins can be analogue. Most of the analogue pins are taken by the touch interface so unfortunately only 2 are available RB13 and RB15. An external I2C or serial device such as P011/P012 could be used.

constant TRISCCLR         0xBF886214
constant LATCCLR          0xBF886234
constant LATCSET          0xBF886238
function digital_example()
    // set PORTC, 6,7,8,9 as O/P 11 1100 0000
    @TRISCCLR = 0x3c0  // set pins as output
    @LATCCLR = 0xc0  // set RC6 & RC7 low
    @LATCSET = 0cc0  // set RC6 & RC7 high
    // adc inputs on RB13 and RB15
endf
Example of how to set digital ports, more information http://www.pin1.org/gpeasy/index.php/Inputs This also contains information about setting the analogue inputs and reading ADC.
Sorry, only registered users may post in this forum.

Click here to login