PicoMite V5.07.00b0 - beta firmware
| Author | Message | ||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11850 |
Please find attached the first beta release of the Picomite - V5.07.00b0 PicoMiteV5.07.00b0.zip Changes from a48: PIN 42/GP29 now accessible ADC command - see below MEMORY COPY and MEMORY SET commands implemented as per CMM2 Swapping between PWM and PFM no longer causes a restart but is still a permanent option Should now install on a blank Pico RESTORE can now take a variable including numeric for a line number or string for a label Various MM.INFO($) sub functions:- FILESIZE MODIFIED OPTION BREAK OPTION BASE OPTION DEFAULT OPTION EXPLICIT OPTION AUTORUN PIN n LCDPANEL TOUCH DEVICE VERSION VARCNT DISK SIZE FREE SPACE FONTWIDTH HPOS VPOS SDCARD ERRNO ERRMSG BCOLOUR 'returns the current background colour FCOLOUR 'returns the current foreground colour FLASH 'reports which flash slot the program was loaded from if applicable FONT ' returns the number of the currently active font FONT POINTER n 'gives a pointer to the start of font n in memory FONT ADDRESS n 'gives the address of the memory location containing the address of font n New command ADC ADC OPEN freq, n_channels [,interrupt] This allocates up to 4 ADC channels for use GP26, GP27, GP28, and GP29 and sets them to be converted at the specified frequency. The maximum total frequency is 500KHz (e.g. 125KHz if all four channels are to be sampled). If the number of channels is one then it will always be GP26 used, if two then GP26 and GP27 etc. Sampling of multiple channels is sequential (there is only one ADC) The specified pins are locked to the function when ADC OPEN is active' The optional interrupt parameter specifies an interrupt to call when the conversion completes. If not specified then conversion will be blocking ADC FREQUENCY freq This changes the sampling frequency of the ADC conversion without having to close and re-open ADC CLOSE Releases the pins to normal usage ADC START array1!() [,array2!()] [,array3!()] [,array4!()] This starts conversion into the specified arrays. The arrays must be floating point and the same size. The size of the arrays defines the number of conversions. The results are returned as a voltage between 0 and OPTION VCC (defaults to 3.3V). Start can be called repeatedly once the adc is OPEN Test example run with OPTION MEMORY 0,16384 ADC open 1000,4,myint Dim a(2499),b(2499),c(2499), d(2499) Timer =0 ADC start a(),b(),c(),d() Do :Loop Sub myint Print Timer adc close end End Sub Edited 2021-07-18 04:01 by matherp |
||||