- At the beginning its gives good output with 3 mS period frequency and 5~18 V output voltage range. This is need to be update while testing....!
This module were used to drive output in between 5~18 V range, this can operate maximum of 125 nS frequency,
2. when current pass through skin 6 mA it can feel for above period(3 mS)
3. This is 1st day test and will update with latest improvement soon
======================================================================
# include<util/delay.h>
# define _BV(bit) (1<<bit)
# define setbit(port, bit) (port) |= (1<<(bit))
# define clearbit(port, bit) (port) &= ~(1<<(bit))
# define togglebit(port,bit) (port) ^= (1<<(bit))
int main(void){
DDRC = 0xFF; // DataDirectionRegister for portc set as output
//===================end less loop=================
while(1){
setbit(PORTC,PC0); // set portc.0 HIGH
_delay_us(1500); // set ON delay
clearbit(PORTC,PC0);// set portc.0 LOW
_delay_us(1500); // set OFF delay
}
//================================================
return 0;
}
Electronic Muscle Stimulaters |
No comments:
Post a Comment