Please help newbie with getting variable to output pins. | Cypress Semiconductor
Please help newbie with getting variable to output pins.
I come from a PIC background and am just now starting to try and work with Cortex M3 and PSOC parts. I have been trying to figure out how to get the value of an 8 bit variable to 8 I/O pins. I read the post in "PSOC5 Architecture" titled "ADC output register to component pins", but it didn't go into depth enough for me to understand it (trigger an ISR??, use EMIF??). Also I've seen plenty of examples of how to move one bit values to a port pin, but not how to move a byte wide value.
Could someone please tell me what lines of code I would need in the following code snippet to send the ADC output value to physical pins on the part?
main()uint8 ADC_Out;/* Start the ADC conversion */
ADC_Out = ADC_DelSig_1_GetResult8();
for(;;)if(ADC_DelSig_1_IsEndConversion(ADC_DelSig_1_RETURN_STATUS))// What goes here to get value to port pins??
/* END OF FILE */
I know this is probably really simple and that I'll be slapping myself in the forehead saying "DOH!!!" like Homer Simpson when I see how it's done, but right now I'm stuck! :^)
Thanks for any and all help!!