Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

SimulIDE trunk Tester builds.

+8
KarstenLehmann
vranik
Defran
KerimF
TimFisch
Alex68
Fizik_S
arcachofo
12 posters

Go to page : Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

Go down  Message [Page 6 of 8]

126SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Fri May 26, 2023 10:16 pm

KerimF

KerimF

arcachofo wrote:New build at Rev 1677 uploaded.
Check first message in this post.

Thank you.

RoVo likes this post

127SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Tue Jun 13, 2023 2:25 am

arcachofo

arcachofo

New build at Rev 1709 uploaded.
Check first message in this post.

KerimF, KarstenLehmann and RoVo like this post

128SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Wed Jun 14, 2023 7:49 pm

KarstenLehmann



arcachofo wrote:New build at Rev 1709 uploaded.

Thank you arcachofo!
But allow me a suggestion: the newest version R1709 did not run anymore under ubuntu 18.04.
R1677 did it perfect before.

129SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Wed Jun 14, 2023 8:13 pm

arcachofo

arcachofo

the newest version R1709 did not run anymore under ubuntu 18.04.
R1677 did it perfect before.
No, Ubuntu 18.04 is no longer supported.

130SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Mon Jul 10, 2023 4:27 pm

arcachofo

arcachofo

New build at Rev 1737 uploaded.
Check first message in this post.

No, Ubuntu 18.04 is no longer supported.
Ubuntu 18.04 is supported again (for a few months).



Last edited by arcachofo on Wed Jul 12, 2023 4:47 am; edited 1 time in total (Reason for editing : typo)

KerimF likes this post

131SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Wed Jul 12, 2023 4:48 am

arcachofo

arcachofo

Files reuploaded at Rev 1741 to solve issues with Subcircuit properties.

Btw: I'm uploading videos in Spanish about simulide to my personal channel.
Here is the first one if someone is interested:
https://youtu.be/xRF0TBUU0JY

Fizik_S likes this post

132SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Sat Jul 15, 2023 8:10 pm

arcachofo

arcachofo

Files reuploaded at Rev 1751 to solve several issues .

There is updated information:
- Linking Components: https://simulide.forumotion.com/t1556-linking-components#6810
- Packages: https://simulide.forumotion.com/t1605-packages#7004

Fizik_S and KerimF like this post

133SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Tue Sep 05, 2023 2:02 am

arcachofo

arcachofo

New build at Rev 1859 uploaded.
Check first message in this post.

134SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Tue Sep 05, 2023 5:49 pm

arcachofo

arcachofo

New build at Rev 1861 uploaded.
Check first message in this post.

Fixed some problems deleting components.

KerimF likes this post

135SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Wed Sep 06, 2023 11:36 pm

homievk



Hi.
SimulIDE version: at Rev 1861 (05-09-23)
I designed the circuit atmega8+DS1307.
.ASM file (Avrasm2 compiler)
The part of the program
================
I2C_START:
LDI R21,(1 << TWINT)|(1 << TWSTA)|(1 << TWEN)
STS TWCR,R21 ;transmit a START condition
WAIT1:
LDS R21, TWCR ;read control register into R21
SBRS R21, TWINT ;skip next line if TWINT is 1
RJMP WAIT1 ;jump to WAIT1 if TWINT is 1
RET
===============
I got an endless loop here

WAIT1:
LDS R21, TWCR ;read control register into R21
SBRS R21, TWINT ;skip next line if TWINT is 1
RJMP WAIT1 ;jump to WAIT1 if TWINT is 1

It seems that TWINT is not 1 all the time.

136SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Wed Sep 06, 2023 11:58 pm

arcachofo

arcachofo

Thanks for reporting.
The problem is only in this version?

137SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Thu Sep 07, 2023 12:03 am

homievk



The same problem was with the version R1751 (I tested only with two versions).
Also everything works fine if to use Arduino and sketches.

138SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Thu Sep 07, 2023 12:06 am

arcachofo

arcachofo

The same problem was with the version R1751 (I tested only with two versions).
Also everything works fine if to use Arduino and sketches.
Ok, I will have a look.

139SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Fri Sep 15, 2023 2:14 am

arcachofo

arcachofo

New build at Rev 1894 uploaded.
Check first message in this post.

Most problems with Undo/Redo should be solved.

Editor setting refactored. Now there are 3 dialogs:
- Editor settings.
- File settings.
- Compiler settings.

140SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Fri Sep 15, 2023 10:16 am

homievk



The same problem - an endless loop for I2C.
I made screenshots of my circuit and asm program
circuit
code1
code2
Let me know what is wrong.

141SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Fri Sep 15, 2023 6:48 pm

arcachofo

arcachofo

homievk wrote:The same problem - an endless loop for I2C.
I made screenshots of my circuit and asm program
circuit
code1
code2
Let me know what is wrong.
It would be better if you provide the code to try it.
From an image I can't test.

142SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Fri Sep 15, 2023 6:59 pm

homievk



;*******************************************************
;Chip Model: MEGA8
;Assembler header file
.INCLUDE "m8def.inc" ;tells the AVR assembler to add the contents of a file to our program
;*******************************************************
.ORG 0 ;indicates the beginning of the address of our code; puts our code at the beginning of flash memory

LDI R21,HIGH(RAMEND) ;set up stack
OUT SPH,R21
LDI R21,LOW(RAMEND)
OUT SPL,R21
RCALL I2C_INIT ;initialize the I2C module
RCALL I2C_START ;transmit a START condition
LDI R21, 0b11010000 ;SLA (1001101) + W(0)
RCALL I2C_SEND ;transmit R21 to I2C bus
LDI R21, 0x07 ;set register pointer to 07
RCALL I2C_SEND ;to access the control register
LDI R21, 0x00 ;set control register = 0
RCALL I2C_SEND ;transmit R21 to I2C bus
RCALL I2C_STOP ;transmit a STOP condition
RCALL DELAY
RCALL I2C_START ;transmit a START condition
LDI R21, 0b11010000 ;SLA (1001101) + W(0)
RCALL I2C_SEND ;transmit R21 to I2C bus
LDI R21, 0x00 ;set register pointer to 0
RCALL I2C_SEND ;transmit R21 to I2C bus
LDI R21, 0x55 ;set seconds to 0x55 = 55 BCD
RCALL I2C_SEND ;transmit R21 to I2C bus
LDI R21, 0x58 ;set minutes to 0x58 = 58 BCD
RCALL I2C_SEND ;transmit R21 to I2C bus
LDI R21, 0x16 ;hour = 16 in 24 hours mode
RCALL I2C_SEND ;transmit R21 to I2C bus
RCALL I2C_STOP ;transmit a STOP condition

SBI DDRB, 5 ;makes PORTB.5 an output port by setting DDRB.5:=1

BACK:
SBI PORTB, 5 ;turns on PB5; PB5:=1
RCALL DELAY2 ;time delay, calls the DELAY subroutine
CBI PORTB, 5 ;turns off PB5; PB5:=0
RCALL DELAY2 ;time delay, calls the DELAY subroutine
RJMP BACK ;jumps to BACK, keeps doing it forever (an infinite loop)

;*********************************************************
I2C_INIT:
LDI R21, 0
STS TWSR,R21 ;set prescaler bits to zero
LDI R21, 152 ;move 152 into R21
STS TWBR,R21 ;set clock freq. to 50k (16 MHz XTAL)
LDI R21, (1 << TWEN) ;move 0x04 into R21
STS TWCR,R21 ;enable the TWI
RET
;*********************************************************
I2C_START:
LDI R21, (1 << TWINT)|(1 << TWSTA)|(1 << TWEN)
STS TWCR,R21 ;transmit a START condition
WAIT1:
LDS R21, TWCR ;read control register into R21
SBRS R21, TWINT ;skip next line if TWINT is 1
RJMP WAIT1 ;jump to WAIT1 if TWINT is 1
RET
;***************************************************
I2C_SEND:
STS TWDR, R21 ;move SLA+W into TWDR
LDI R21, (1 << TWINT)|(1 << TWEN)
STS TWCR, R21 ;configure TWCR to send TWDR
W2: LDS R21, TWCR ;read control register into R21
SBRS R21, TWINT ;skip next instruction if TWINT is 1
RJMP W2 ;jump to W2 if TWINT is 0
RET
;***************************************************
I2C_STOP:
LDI R21, (1 << TWINT)|(1 << TWSTO)|(1 << TWEN)
STS TWCR, R21 ;transmit STOP condition
RET
;***************************************************
DELAY:
LDI R22, 0xFF
A1: DEC R22
NOP
BRNE A1
RET
;***************************************************
DELAY2:
LDI R20, 100 ;loads R20 with the value 100 in dec
L0: LDI R21, 250 ;loads R21 with the value 250 in dec
L1: LDI R22, 250 ;loads R22 with the value 250 in dec
L2:
NOP ;does nothing (1 Instruction cycle)
NOP ;does nothing (1 Instruction cycle)
DEC R22 ;decrements R22 by one, assign Z:=1 if R22==0 (1 Instruction cycle)
BRNE L2 ;tests the zero flag (Z), branch to L2 if Z==0 (2 Instruction cycles)

DEC R21 ;decrements R21 by one, assign Z:=1 if R21==0
BRNE L1 ;tests the zero flag (Z), branch to L1 if Z==0

DEC R20 ;decrements R20 by one, assign Z:=1 if R20==0
BRNE L0 ;tests the zero flag (Z), branch to L0 if Z==0
RET ;returns to caller (the end of the DELAY subroutine)

143SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Fri Sep 15, 2023 8:02 pm

arcachofo

arcachofo

@homievk:
I think that you can't use instruction STS with register TWCR.
You need to use instruction OUT.

144SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Fri Sep 15, 2023 8:21 pm

homievk



I replaced STS with OUT and still an endless loop. Post working code if you have it.

145SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Fri Sep 15, 2023 8:28 pm

arcachofo

arcachofo

I replaced STS with OUT and still an endless loop. Post working code if you have it.
STS is only one problem, there are more...
Fix your code and it will hopefully work.

146SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Tue Sep 19, 2023 10:22 pm

Simulmega



Is UART communication protocol included in SimulIDE-R1894?

147SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Tue Sep 19, 2023 11:48 pm

arcachofo

arcachofo

Simulmega wrote:Is UART communication protocol included in SimulIDE-R1894?
Yes it is.

Simulmega likes this post

148SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Thu Sep 21, 2023 12:29 pm

homievk



Could you tell me what Compiler Settings must be for SimulIDE_1.1.0-RC0 Arduino board?
I used
Tool Path: C:/arduino-1.8.18/
Libraries Path: C:/arduino-1.8.18/libraries/
I get errors all the time
fatal error: RTClib.h: No such file or directory

149SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Thu Sep 21, 2023 12:38 pm

arcachofo

arcachofo

homievk wrote:Could you tell me what Compiler Settings must be for SimulIDE_1.1.0-RC0 Arduino board?
I used
Tool Path: C:/arduino-1.8.18/
Libraries Path: C:/arduino-1.8.18/libraries/
I get errors all the time  
fatal error: RTClib.h: No such file or directory
Only use "Libraries path" if the library is in a non standard path.
Normally "Libraries path" should be empty.

150SimulIDE trunk Tester builds. - Page 6 Empty Re: SimulIDE trunk Tester builds. Fri Sep 22, 2023 8:27 pm

Simulmega



The new version is really awesome!! Thanks for making such an amazing simulator. I hope you add LM35 sensor in the next version.

arcachofo likes this post

Sponsored content



Back to top  Message [Page 6 of 8]

Go to page : Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

Permissions in this forum:
You cannot reply to topics in this forum