bythesea said:
i'm a beginner in pic programming and i would greatly appreciate any help given.
i need to generate a waveform using pic16f877 which looks like this **broken link removed** as shown on page3. how can i do this?
i have not done pic programming before and even though i have looked through the datasheet a few times, i'm none the wiser.
i'm using C to program the chip using the mplab and hitech-picc interface. i had been stuck for more than a week and i really hope to achieve some progress very very soon.
thanks a lot in advance
Well for a start you will need extra hardware, the PIC runs off +5V and you need +20V and -20V outputs. Also, assuming you need the changes from +ve to -ve to be gradual (as the diagram shows) you will also need a digital to analogue converter. If all you need to do is switch the output high for a certain time (+5V) and low for a certain time (0V) it's very easy to write the code for.