Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The numbers is from USART tool inside mikroc for arm, with DEC data format,
after change the part of code from your advice the received number was
192 152 064 184 082 088 136 064 184 082 088...
MikroC for ARM dont support UARTprintString(Txt);
only
UART_Write(Txt); and
UART_Write_Text(Txt);
what is better solution to print that string? UART_Write_Text(Txt);?
- - - Updated - - -
I receive on UART terminal something like this
098 136 099 200 098 128 070 000 116 035 244 017
how can I...
Horace, in while (1) I have Cnt procedure
while(1){
while(ENCODER == 0); // wait if 0
Cnt++; // Inc ENCODER
while(ENCODER == 1); // wait if 1
}
Your advice for "if array...
TFT display? I will not use it,
only measure Cnt from encoder (not convert to RPM), save in array, after 10 sec, send array to PC...
how can I create array with 1000 members, each with max 4 digit dec number?
also how to send that array via UART?
Horace1,
my intention is to create only one block of Cnt for 10 sec, and send to PC,
not several blocks every 10 sec,
baud rate 57600,
you ask : why not send a sample as soon as you have sampled it every 100mSec?
I think because UART need some time for finish the transfer, to create array and...
I think better way will be to store Cnt on array, without TFT write procedure...
for example store Cnt on vector every 10ms,
do this for example 10 sec,
after 10 sec, send the vector to PC via UART,
Horace1, can you help with concrete advice how to create vector (probably for example
int...
Horace1,
at the start sorry because I wrote directly to you, but because you help me with concrete solution, I think is not a problem,
I have several conclusion:
I read RPM app 890 on TFT, but expected value need to be app 2000 RPM,
I check my calculations and I think I have a problem with slow...
Horace1, one more question for you, according previous project you help me,
now I need to save in array, every 1ms, RPM from motor, and send to PC via UART,
exactly,
every 1ms, I read RPM value, and send to PC via UART i array...
can you advice how to send via UART RPM value?
RPM is integer, so...
Yes Horace1, background color is white and text is black,
if I understand you well I will try,
best regards
- - - Updated - - -
Me again,
to complicated for me right now,
Hi collegues,
I use EasyMx for Stellaris with ARM C4 mcu, mikroc pro for arm,
I measure RPM on DC motor with encoder, and show on TFT every 1 sec,
everithing is Ok, but I can not show clear RPM number on TFT because new numbers shows over previous numbers...
after a short time I see only some...
Hi for all,
I use EasyMx Pro for Stellaris board with LM4F232 (Cortex M4) mcu,
I need to read temp from 18B20, but on TFT I only have 000.0625 C,
sensor in connected on PD4 port
the code is
// TFT module connections
char TFT_DataPort at GPIO_PORTJ_DATA;
sbit TFT_RST at GPIO_PORTH_DATA5_bit...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.