thank guy for the help once again.i will try it out and let u get know. im not using visual c to program it im using IAR workbench to program my code.so i do not know it will work not. so will update...
Type: Posts; User: shifu
thank guy for the help once again.i will try it out and let u get know. im not using visual c to program it im using IAR workbench to program my code.so i do not know it will work not. so will update...
im using window.ya if i use sleep();
what do i need to use for the header? is it conio.h? or some other thing?because i try putting in the sleep(); bu they prompt me with warning.
"function...
Any way to put a delay into this.:
my code is this:
HR1 = 92160/pulseperiod;
ADDR1 = 1;
if(HR1 < 40)
adak.:) ya can i ask u 1 more question how do i put in a delay? i try putting in
sleep(1);
but it prompt warning "function sleep declared implicitly".
any other way to put i a delay?
adak, i find it weird..i delete all the code for conversion because i cant get it. so i download back the code to the board and it work!!!!! miracle....here's the code can u tell me how come it can...
Heartbeat rate per minute = 1/[pulseperiod/(3 ´ 512 ´ 60)] = 92160/pulseperiod.
pulseperiod is used for the calculation of heart-rate per minute and reset.
This is the original code.
#include <msp430xG43x.h>
#include "math.h"
#include <stdlib.h>
#include <ctype.h>
//defines
1/512 second delay if im not wrong.
#include <msp430xG43x.h>
#include "math.h"
#include <stdlib.h>
#include <ctype.h>
//defines
#define PB_2_0 (1 << 0) // Push Button on P2.0
#define PB_2_1...
9553
okie this is my device and the code that i paste is being build into this device. is a heart rate board with a wireless transmitter attach to this device.
"Worry about getting one char...
thank droseman , ya this project is giving to me recently only.i will read up the library source to find out more. but i just need some help in putting the outside as a seperate number. example
...
hello, ya i have change my program to a hard code to try it out 1st. it something like this.
if(char_gen[(heartrate & 0xf0) >> 4]>4 || char_gen[(heartrate & 0xf00) >> 8]<2)
{
...
thank adak i will go and try and update u again.:) thank for taking ur time.
this code is like only sent out 1 data after that it hang.
if(char_gen[(heartrate & 0xf0) >> 4]>4 || char_gen[(heartrate & 0xf00) >> 8]<2)
{
num = 92160/pulseperiod;
...
adak sorry, is quite confusing.i donnoe which 1 to put in to my code. can u help me in putting the code together in 1 than i can straight away copy paste into my code and compile to try? thank alot....
ya adak, i get what u mean. thank anyway for the great help. okie now i show u the previous work i done.it only can read 2 digit.
if(char_gen[(heartrate & 0xf0) >> 4]>4 ||...
opps sorry i didnt clarify my question clearly sorry.cos now this code that im writing now is to put inside a heart rate board. so i need to sent out a hexadecimal value to my PC and i already...
my num is declare as integer int num=0.
num = 92160/pulseperiod;
92160/pulseperiod, the pulseperiod is a measurement taken through a heart rate board that measure our heart rate. so is a...
num = 92160/pulseperiod;
div1=16;
while ((num>0)&&(div1>0))
{ ctr--;
output[ctr]=dataset[(num%div1)];
num=num/div1;
}
for (int i=1;...
delphi code is about the same as c/c++ so i post it on this board so that u guy can help with the code for the counter.
do u all know any if statement to make that counter?
can u show me some code for me to try it out.
How to implement a counter from 1 to 1800 whereby once the count reaches the maximum number being display, a pop-up screen will appear and causing the counter to reset back to 1. Using a if statement.
thank you i will try it.
ya this is what i wanna do.i nid to put the two value together.
for my TXBUF0, it only can accept value.