Welcome to Planetpsoc

Voltage Controlled Oscillator in PSoC3 and PSoC5

E-mail Print PDF
( 1 Vote )
Question: Is it possible to create a Voltage Controlled Oscillator in PSoC3 / PSoC5 using the PSoC3/PSoC5 hardware?

Answer: Yes.  With a handful of hardware components, it is possible to create a voltage controlled oscillator in PSoC3 / PSoC5.  The schematic of a voltage controlled oscillator is shown below.


Read more...
 

ADC_UART_LCD - Measure Multiple Analog Inputs using PSoC3

E-mail Print PDF
( 1 Vote )
This projects shows how to measure multiple Analog inputs using the Analog Mux and Delta Sigma ADC components in PSoC3.  The results are displayed both on an LCD and transmitted to a PC using the UART component.  The results can be observed using Hyperterminal.  The project can be tested using the CY8CKIT-001 PSoC3 Development Kit from Cypress Semiconductors.


Attachments:
FileFile size
Download this file (ADC_LCD_UART.cywrk.Archive01.zip)ADC_LCD_UART.cywrk.Archive01.zip854 Kb
Download this file (Example_ADC_UART_LCD.pdf)Example_ADC_UART_LCD.pdf512 Kb
 

USB_TOGGLE and USB_NO_TOGGLE Flags

E-mail Print PDF
( 0 Votes )
// Start USB for 5V operation and wait till enumeration is complete
USBFS_Start(0, USB_5V_OPERATION);
while(!USBFS_bGetConfiguration());

// Load the IN endpoint with data with no toggle
USBFS_LoadInEP(1, Data, 8, USB_NO_TOGGLE);

while(1)
{
   ...
   // Other code
   ...
   // Wait till EP1 becomes free
   while(!USBFS_bGetEPAckState(1));

   // Load EP1 with gamepad report
   USBFS_LoadInEP(1, Data, 8, USB_TOGGLE);
}
Above code shows the general program flow when using an USBFS user module to send data to the PC using an IN Endpoint.  If you notice, the USBFS_LoadInEP function call before the while loop uses “USB_NO_TOGGLE” and the call inside the while loop uses “USB_TOGGLE”.  What is this TOGGLE and NO_TOGGLE?  What is the significance of these constants?  I can understand from the above code that the first time I call the USBFS_LoadInEP function, I have to use NO_TOGGLE option and TOGGLE for further transactions.  Why is it so?  These are some of the questions a first time user of USB faces.
Read more...
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  7 
  •  8 
  •  9 
  •  10 
  •  Next 
  •  End 
  • »


Page 1 of 22