Jump to content

Davidwallis

Members
  • Content Count

    4
  • Joined

  • Last visited

About Davidwallis

  • Rank
    Noob Class

Profile Information

  • Location
    Leeds
  1. Davidwallis

    Tivaware weak pull down and ADC?

    Is it possible to configure a weak Down up on an adc? I have tried this but it doesn't seem to work..(based on the single ended adc example, comments removed for clarity.. SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE); GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_3); //Configure Weak pull down GPIOPadConfigSet(GPIO_PORTE_BASE,GPIO_PIN_3,GPIO_STRENGTH_2MA,GPIO_PIN_TYPE_STD_WPD); ADCSequenceConfigure(ADC0_BASE, 3, ADC_TRIGGER_PROCESSOR, 0); ADCSequenceStepConfigure(ADC0_BASE, 3, 0, ADC_CTL_CH0 | ADC_CTL_IE | ADC_CTL_END); ADCSequenceEnable(ADC0_BASE, 3); ADCIntClear(ADC0_BASE, 3); Thanks
  2. Davidwallis

    Energia can example

    Thanks, I eventually got the code working with a peer review from a friend, who couldn't see anything wrong, he built it on his machine and then sent the bin which I flashed and it all worked ok.. Downgrading tivaware on my machine and rebuilding it - it then worked.. Need to have another play with this tonight.. Next problem was I was loosing messages - Don't know if I need to use more slots and fifo to cope with the volume of messages (@ 1Mbps) ?
  3. Davidwallis

    Energia can example

    Hi, I got the example working to some extent, but ended up using code composer - so mods feel free to move this if needed. Few questions on the RX example.. How do I add interrupt vectors? Initally I have got it triggering on can messages by enabling: CANIntRegister(CAN0_BASE, CANIntHandler); // if using dynamic vectors I have set the msgID as: sCANMessage.ui32MsgID = 0x600; and have tried all sorts of masks.. from 0 to 0xffff etc - Just not sure how to set this? sCANMessage.ui32MsgIDMask = 0xfff; In this scenario I am running at 1Mbps and have configured the baud rate accordingly - the bus is very busy currently.. but using another product and tool I can see the message being sent as: CAN id 600 Length 8 DATA 00 00 00 00 34 61 00 However I see no data from the example.. what simple thing am I doing wrong??
  4. Davidwallis

    Energia can example

    Does anyone have a can bus example for energia that works with the tm4c123g? Thanks David
×