what year did they stop making 340 motors??

Mid '73 the 340 was replaced by 360 in most vehicle lines. There may be a few that made it out in 74 with special orders in other inventory - for example, I believe it survived longer in the road runner package than say the Challenger. But either way, can't imagine anything later than 76.