Jump to content

madeinoz

EstablishedMember
  • Content Count

    6
  • Joined

  • Last visited

Everything posted by madeinoz

  1. Thanks for that Dave, Answered my questions , but will also have a look at the source as suggested Stephen...
  2. G'day one and all, I've just started to have a play with Novo and would like to know what overheads/impacts of setting the system timer to smaller values? i.e. in the examples it is set to update the system timer once every mSec. I take it the system timer function handles the scheduling and context switching, so will these occur every mSec if there is a higher priority task waiting? Unless my task yields and is not waiting on system timer or a semaphore, then I may have a mSec or more to wait until a lower task gets to run? What is the smallest SystemTime that would be usable, without too much time being taken in context swaps and scheduling? Are there any figures/times on the actual context switch? How long does it take to switch out the current task and switch in the next scheduled one? Especially for the pic16 running at 20Mhz. Thanks, Stephen...
  3. Does anyone know if the LCD library by Lieven Hollevoet works under the LCD simulator, as I'm having little success in getting it to work. Stephen....
  4. My wish list is a simulator block for an SPI Device either as as master or slave device
  5. I've just created my own template for the 16F873A based on a modified wizard template for the 16F877. I just removed the additional ports, however when i preview or try to generate the code I get an error "invalid combination of settings for ADC" Is there anywhere else I need to modify? regards, Stephen include "../common/data.boost.wizard.lists" Modules { "Target" $TARG { "Configuration" "Target processor configuration word" { "Power Up Timer" $CONF_POWER_UP "Power Up Timer" ETYPE_SELECTION:"YesNo":0 "Brown Out Reset" $CONF_BROWN_OUT_RESET "Brown Out Reset" ETYPE_SELECTION:"YesNo":0 "Watchdog Timer" $CONF_WATCH_DOG "Watchdog Timer" ETYPE_SELECTION:"YesNo":0 "Low Voltage Programming" $CONF_LOW_VOLT_PROG "Low Voltage Programming" ETYPE_SELECTION:"YesNo":1 "Data Code Protect" $CONF_DATA_CODE_PROTECT "Data Code Protect" ETYPE_SELECTION:"YesNo":0 "Debug (ICD)" $CONF_DEBUG "Debug (ICD)" ETYPE_SELECTION:"YesNo":0 "Oscillator" $CONF_OSCILLATOR "Oscillator type" ETYPE_SELECTION:"Oscillator":1 "Code Protection" $CONF_CODE_PROTECT "Code Protection" ETYPE_SELECTION:"YesNo":0 } } "I/O Ports" $ { "Port A" $PORTA { "Port A pin configuration" "Port A pin configuration" { "RA0" $RA0_CONF "Pin number 0" ETYPE_SELECTION:"PinConfAD":0 "RA1" $RA1_CONF "Pin number 1" ETYPE_SELECTION:"PinConfAD":0 "RA2" $RA2_CONF "Pin number 2" ETYPE_SELECTION:"PinConfVRef-":0 "RA3" $RA3_CONF "Pin number 3" ETYPE_SELECTION:"PinConfVRef+":0 "RA4" $RA4_CONF "Pin number 4" ETYPE_SELECTION:"PinConf":0 "RA5" $RA5_CONF "Pin number 5" ETYPE_SELECTION:"PinConfAD":0 } #include "../common/data.boost.wizard.porta6.val" } "Port B" $PORTB { #include "../common/data.boost.wizard.portb.conf" #include "../common/data.boost.wizard.portb.val" "Port Change Interrupt" "Port Change Interrupt that is triggered by changing inputs on RB7:RB4 pins" { "Port Change Interrupt" $RB_CHANGE_INTER "Port Change Interrupt that is triggered by changing inputs on RB7:RB4 pins. These pins need to be configured as inputs." ETYPE_SELECTION:"EnableDisable":0 } "External Interrupt" "External Interrupt that is triggered by changing input on RB0 pin" { "External Interrupt" $RB_EXT_INTER "External Interrupt that is triggered by changing input on RB0 pin. This pin needs to be configured as input." ETYPE_SELECTION:"EnableDisable":0 } } "Port C" $PORTC { #include "../common/data.boost.wizard.portc.conf" #include "../common/data.boost.wizard.portc.val" } } "Timers" $ { #include "../common/data.boost.wizard.timer0" #include "../common/data.boost.wizard.timer1" #include "../common/data.boost.wizard.timer2" } } $CONFIG_WORD $CLOCK $TIMER0_HANDLER $TIMER1_HANDLER $TIMER2_HANDLER void interrupt( void ) { $RB_CHANGE_INTERRUPT $RB_EXTERNAL_INTERRUPT $TIMER0_INTERRUPT $TIMER1_INTERRUPT $TIMER2_INTERRUPT } void main( void ) { $TRISA $TRISB $TRISC $ADCON1 $PORTA $PORTB $PORTC $TIMER0_CONFIG $TIMER1_CONFIG $TIMER2_CONFIG $INTERRUPT_CONFIG //Endless loop while( 1 ); }
×
×
  • Create New...